[FieldTrip] plotting frequency-power spectrum of ICA components ft_icabrowser error

Hahn, Laura laura.hahn at charite.de
Mon Dec 4 14:03:35 CET 2023


Dear Fieldtrippers,


I am currently doing artefact rejection on a dataset of children's EEG using ICA. I am able to plot the topography and timecourse of my ICA components, but fail in plotting their frequency-power spectrum (lot's of alpha activity in my dataset. Hopefully loads into a single component).


I found some code snippets in old messages on the mailing list but have not been able to apply them on my dataset. Is there maybe a tutorial I missed, some code that shows how to plot the freq-pwer spectrum like in eeglab?


I also found ft_icabrowser(cfg, comp), which should plot the freq-power spectrum of my components alongside other measures. I tried using it like this, with a custom layout

cfg = [];
cfg.layout = 'C:\EEG_Data\layout_EEG.mat'
[dummy] = ft_icabrowser(cfg, comp);
however, instead of one figure window with several subplots per component, several windows are opened, each containing subplots, some of them empty. The topoplots also open in seperate windows and only the first 4 of my 25 components are plotted. For each component I get this error message:

Warning: could not determine dimord of "comp" in:

             label: {28×1 cell}
               cfg: [1×1 struct]
              topo: [28×1 double]
        topodimord: 'chan_comp'
              comp: 4
          unmixing: [-1.2657 -1.5088 -1.6876 -1.1454 -1.3345 0.0388 -0.3569 1.2782 0.3718 -1.7437 -1.7553 -1.5412 -0.1625 0.6848 -0.4991 -1.8822 -0.2463 -1.5501 -2.0003 … ]
    unmixingdimord: 'chan_topochan'


Any thoughts on this?

Thanks in advance and best wishes,


Laura


__________

Dr. Laura Hahn

Forschungsgruppe Frühkindliche Sprachentwicklung

Klinik für Audiologie und Phoniatrie

Charité - Universitätsmedizin Berlin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20231204/0221db58/attachment.htm>


More information about the fieldtrip mailing list