[FieldTrip] ft_selectdata

Hall, Michael (Research Student) hallmbh at aston.ac.uk
Thu Feb 2 21:17:12 CET 2017

Hi Mona,

The cfg.frequency parameter in ft_selectdata only works on data with a frequency dimension.

Try using the cfg.bpfilter = 'yes'; cfg.bpfreq = [0.1 2]; in ft_preprocessing.

Best wishes,

Get Outlook for Android<https://aka.ms/ghei36>

From: Wong-Barnum, Mona
Sent: Thursday, 2 February, 18:22
Subject: [FieldTrip] ft_selectdata
To: FieldTrip discussion list


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


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.



    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/d6514f3d/attachment-0002.html>

More information about the fieldtrip mailing list