[FieldTrip] unequal sample number across trials after downsampling
Frédéric Roux
f.roux at bcbl.eu
Fri Jun 5 16:41:41 CEST 2015
You could explicitly equate all time axes in your data structure prior to resampling:
data.time(1:end) = data.time(1); (or so).
Thanks JM - I think this will solve my problem!
--
FR
----- Original Message -----
From: "J.M. Schoffelen (Jan Mathijs)" <jan.schoffelen at donders.ru.nl>
To: "FieldTrip discussion list" <fieldtrip at science.ru.nl>
Sent: Friday, June 5, 2015 12:05:05 PM
Subject: Re: [FieldTrip] unequal sample number across trials after downsampling
Hi Fred,
You could explicitly equate all time axes in your data structure prior to resampling:
data.time(1:end) = data.time(1); (or so).
Assuming the time axes are equal, that is.
Otherwise, just remove the last sample from each of the 2401 sample trials :-).
JM
On Jun 5, 2015, at 11:58 AM, Frédéric Roux <f.roux at bcbl.eu> wrote:
> Dear all,
>
> I've encountered an error in my analysis pipeline due to the fact
> that after calling ft_resampledata I am left with an unequal number
> of samples across trials.
>
> For example length(meg_data.trial{1}) = 2401 whereas length(meg_data.trial{2}) = 2400
>
> I am speculating that this is due to differences in rounding and wanted
> to ask if there's a simple way of solving this problem?
>
> Any help or suggestions would be highly appreciated.
>
> Best,
>
> Fred
>
> --
> Frédéric Roux
> Postdoctoral Scientist, Marie-Curie fellow
> 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
> ---------------------------------------------------------------------------
>
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
More information about the fieldtrip
mailing list