[FieldTrip] ft_selectdata

Wong-Barnum, Mona mona at sdsc.edu
Thu Feb 2 19:21:35 CET 2017


Hi:

I’m trying to do some frequency band filtering on my data using ft_selectdata but it doesn’t seem to be working…the new “filtered” data is the same as the original data.

Here is my code (note the eeg.mat file has been through the ft_preprocessing function):

addpath /path/to/fieldtrip
ft_defaults

disp ( 'Reading eeg.mat...' )
data = importdata ( 'eeg.mat' );

disp ( 'Getting low delta band...' )
cfg = [];
cfg.frequency = [0.1 2];
eeg_low_delta = ft_selectdata ( cfg, data );
disp ( 'Saving eeg_low_delta.mat...' );
save eeg_low_delta.mat eeg_low_delta -v7.3;

What am I doing wrong?  All help is appreciated.

thanks,
Mona

************************************************************
    Mona Wong
    Web & Mobile Application Developer
    San Diego Supercomputer Center

    "When your thoughts are too expensive,
     to ever want to keep."

-- U2's When I Look At The World
************************************************************





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


More information about the fieldtrip mailing list