[FieldTrip] FFT on EMG data

Holly Rossiter H.Rossiter at ion.ucl.ac.uk
Tue Apr 26 15:00:23 CEST 2011


Hi,

 

Downloading the newest version of Fieldtrip fixed the previous error but not
I am getting another error following this script...

 

D= spm_eeg_load;

emg = D.ftraw(0);

cfg=[];

       cfg.method='mtmfft';

       cfg.output='pow';

       cfg.taper='hanning';

       cfg.channel={'Lforearm'};

       cfg.foilim= [5 80];% frequency band - foilim or just foi??

       freq=ft_freqanalysis(cfg,emg);

       

     figure

semilogy(freq.freq, freq.powspctrm(1,:), 'b-');

 

Error

 

??? Index exceeds matrix dimensions.

 Error in ==> ft_freqanalysis at 574

           acttboi =

           squeeze(~isnan(spectrum(1,1,foiind(ifoi),:)));

            

 Error in ==> FFT_EMG at 15

       freq=ft_freqanalysis(cfg,emg);

 

 

Any advice would be much appreciated.

 

Thanks,

 

Holly

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20110426/12c280b3/attachment-0001.html>


More information about the fieldtrip mailing list