[FieldTrip] ft_topoplotIC error "could not determine dimord"
Hahn, L.E. (Laura)
l.hahn at let.ru.nl
Fri Apr 26 16:13:18 CEST 2019
Just a quick update:
Plotting now works. I still get the error message, the same for each component, but magically the plot comes up with all 20 components I was asking for. I guess you can ignore this thread now.
Best and thank you for creating fieldtrip! ☺,
Laura
From: fieldtrip <fieldtrip-bounces at science.ru.nl> On Behalf Of Hahn, L.E. (Laura)
Sent: vrijdag 26 april 2019 13:02
To: 'fieldtrip at science.ru.nl' <fieldtrip at science.ru.nl>
Subject: [FieldTrip] ft_topoplotIC error "could not determine dimord"
Dear fieldtrip experts,
I am trying to plot the result of ft_componentanalysis with ft_topoplotIC. I tried the same in February 2019 and then everything worked fine, i.e. I received a plot of the components. Now, however, I tried re plotting the same participants and new participants and get the following error message for both:
ft_topoplotIC(cfg, comp_eeg)
reading layout from file layout_LauraLayout.mat
the call to "ft_prepare_layout" took 1 seconds and required the additional allocation of an estimated 0 MB
Warning: could not determine dimord of "comp" in:
label: {26×1 cell}
cfg: [1×1 struct]
topo: [26×1 double]
topodimord: 'chan_comp'
comp: 1
unmixing: [1×26 double]
unmixingdimord: 'chan_topochan'
Warning: Some points fall outside the outline, please consider using another layout
Undefined function or variable 'c'.
Error in topoplot_common (line 758)
ylabel(c, cfg.colorbartext);
Error in ft_topoplotIC (line 178)
[cfg] = topoplot_common(cfg, comp);
I tried different datasets and different matlab versions, but I keep getting the same error message. I wondered if it has anything to do with recent changes in the underlying fieldtrip code that I might need to incorporate into my script, given that the command used to work a couple of months ago.
The figure window does include only 1 component, where instead it should include 20.
This is my cfg
cfg =
struct with fields:
component: [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]
layout: 'layout_RhymeSong.mat'
comment: 'no'
And this is my data
comp_eeg =
struct with fields:
fsample: 500
time: {1×611 cell}
trial: {1×611 cell}
topo: [26×26 double]
unmixing: [26×26 double]
label: {26×1 cell}
topolabel: {26×1 cell}
sampleinfo: [611×2 double]
cfg: [1×1 struct]
Kind regards and thank you in advance,
Laura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190426/3f42c322/attachment-0002.html>
-------------- next part --------------
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
More information about the fieldtrip
mailing list