[FieldTrip] missing samples after donwsampling

Frédéric Roux f.roux at bcbl.eu
Tue Apr 14 18:12:26 CEST 2015

Dear all,

i've noticed that after invoking ft_resampledata
not all trials  have the same number of samples.

For instance:

cfg = [];
cfg.resamplefs = 400;

[meg_data] = ft_resamplefs(cfg,meg_data);

will return 

length(meg_data.trial{1}) = 2601


length(meg_data.trial{2}) = 2600

This is causing a conflict upstream in my analysis pipeline
and I wanted to ask if there was a way to fix this?

I am using fieldtrip-20150115.

Any thoughts or help would be highly appreciated.



Frédéric Roux
Postdoctoral Scientist
BCBL. Basque Center on Cognition, Brain % Language.

f.roux at bcbl.eu
Tel: +34 943 309 300 Ext 211
Fax: +34 943 309 052

Legal disclaimer/Aviso legal/Lege-oharra: www.bcbl.eu/legal-disclaimer

More information about the fieldtrip mailing list