[FieldTrip] ICA

Vladimir Litvak v.litvak at ion.ucl.ac.uk
Thu Feb 24 17:06:06 CET 2011


Hi Holly,

I'm not sure why the databrowser needs the trl struct or whether we
can add something to our exported FT struct to make it happy. I'm
CCing to the Fieldtrip list to perhaps get some answers. I got exactly
the same complaint from someone else last week.


Best,

Vladimir


On Thu, Feb 24, 2011 at 2:48 PM, Holly Rossiter
<H.Rossiter at ion.ucl.ac.uk> wrote:
> Hi Vladimir,
>
>
>
> I am trying out using ICA on my data to see what difference it makes to the
> eye blinks and whether it is a step worth doing or not. I am using a
> fieldtrip script...
>
>
>
> D= spm_eeg_load;
>
> data = D.ftraw(0);
>
> cfg = [];
>
> cfg.channel = 'MEG';
>
> ic_data = ft_componentanalysis(cfg,data);
>
> cfg = [];
>
> cfg.viewmode = 'component';
>
> cfg.continuous = 'yes';
>
> cfg.layout = 'CTF275.lay';
>
> cfg.blocksize = 30;
>
> cfg.channels = [1:10];
>
> ft_databrowser(cfg,ic_data);
>
>
>
> But it comes up with an error saying
>
>
>
> Error using ==> ft_databrowser at 217
>
> no trials to display
>
>
>
> I think this may be because I don’t have a trl matrix due to using
> spm_eeg_load. Do you know how I can create one of these using spm format
> data? Or how else to write the script so that ICA will work?
>
>
>
> Kind regards,
>
>
>
> Holly




More information about the fieldtrip mailing list