Back to the main page.
Bug 2443 - ft_multiplotER wants to have cfg.refchannel in powandcsd data, although I want to plot powspctrm
Status | CLOSED FIXED |
Reported | 2014-01-20 00:00:00 +0100 |
Modified | 2014-03-06 15:37:34 +0100 |
Product: | FieldTrip |
Component: | plotting |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P5 normal |
Assigned to: | Jan-Mathijs Schoffelen |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Robert Oostenveld - 2014-01-20 00:00:28 +0100
I performed a computation like this cfg = []; cfg.method = 'mtmfft'; cfg.output = 'powandcsd'; % the CSD is needed for source reconstruction cfg.taper = 'dpss'; cfg.foi = 5:5:150; cfg.tapsmofrq = 10; % we apply plenty of frequency smoothing freq_pre = ft_freqanalysis(cfg, data_pre); freq_post = ft_freqanalysis(cfg, data_post); and want to plot it with cfg = []; cfg.layout = 'neuromag306planar.lay'; cfg.parameter = 'powspctrm'; ft_multiplotER(cfg, freq_pre, freq_post); but get an error due to cfg.refchannel The following solves it (as workaround) freq_pre = rmfield(freq_pre, 'labelcmb'); freq_prost = rmfield(freq_post, 'labelcmb');
Jan-Mathijs Schoffelen - 2014-01-25 09:27:19 +0100
sounds like the function is not smart enough (or tries to be too smart). probably now it kind of assumes the user wants to plot connectivity-type data once there's a labelcmb, and does not look in cfg.parameter, which should overrule. will have a look