Back to the main page.

Bug 1839 - ft_sourceplot doesn't work for source from timelock data

Status CLOSED WONTFIX
Reported 2012-11-20 10:05:00 +0100
Modified 2019-08-10 11:55:34 +0200
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to:
URL:
Tags:
Depends on:
Blocks:
See also:

Yuka Okazaki - 2012-11-20 10:05:49 +0100

Created attachment 374 testdata was source analized time locked data with 'lcmv' I tried this for the testdata then I got following error. cfg = []; cfg.method = 'ortho';%'slice'; cfg.funparameter = 'avg.pow'; figure ft_sourceplot(cfg,testdata); ??? error ==> reshape Quantity of elements shouldn't change to reshape error ==> ft_sourceplot at 463 fun = reshape(fun, [dim numel(data.time)]); error ==> sourceplot at 18 [varargout{1:nargout}] = funhandle(varargin{:}); The problem is to reshape data.avg.pow with time dimension, despite it doesn't have the time dimension.


Bart Gips - 2012-11-21 14:17:54 +0100

(In reply to comment #0) This is part of a bigger bug that will be fixed at a later time. For now the solution would be to remove the 'time' field from the data, e.g.: testdata=rmfield(testdata,'time') would make it work. The avg.pow parameter does not vary over time, therefore the time dimension is not needed.


Robert Oostenveld - 2019-08-10 11:51:37 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue describing the issue on https://github.com/fieldtrip/fieldtrip/issues.


Robert Oostenveld - 2019-08-10 11:55:34 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue describing the issue on https://github.com/fieldtrip/fieldtrip/issues.