[FieldTrip] type mismatch error in ft_freqanalysis

Eelke Spaak eelke.spaak at donders.ru.nl
Wed Dec 11 10:41:17 CET 2013


Hi Ozan,

It is unclear to me why cfg.pad would be an integer, see what happens
when I execute the following (in either Matlab 2012a or 2013a):

>> class(32)
ans =
double

Maybe you have some Matlab setting enabled causing it to store numbers
that appear to be integer as an int32?

On a sidenote, please note that, as the warning indicates, not all
changes with 2013a are expected to result in errors, they might
actually just lead to unexpected (i.e. wrong) results, without you
necessarily noticing. Therefore, it would really be better to stick to
an older version until the code has been properly updated. We are
working on making fieldtrip work with 2013a, you can see the progress
here: http://bugzilla.fcdonders.nl/show_bug.cgi?id=2095

Best,
Eelke

On 10 December 2013 17:41, Ozan Çağlayan <ozancag at gmail.com> wrote:
> On Tue, Dec 10, 2013 at 6:40 PM, Ozan Çağlayan <ozancag at gmail.com> wrote:
>> Hi,
>>
>> I was struggling with the problem below for an hour and digging
>> through the code I found out that I was setting cfg.fsample = 128
>> instead of cfg.fsample = 128.0 which was causing an int32 cfg.pad
>> which was causing a type mismatch in the below line.
>
> not cfg.fsample of course, data.fsample..
>
>
> --
> Ozan Çağlayan
> Research Assistant
> Galatasaray University - Computer Engineering Dept.
> http://www.ozancaglayan.com
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip




More information about the fieldtrip mailing list