[FieldTrip] Problem with timelockanalysis

Amira Korkor amira.korkor at gmail.com
Tue Mar 24 00:49:01 CET 2020


Hello Stephen,
Thank you for your reply. I'm bewildered - I went back now to run that line
in order to copy the output for you and it ran without issue, even though I
have changed absolutely nothing since earlier today. I'll come back if it
stops working but I'm hoping it was just a fluke!
Many thanks,
Amira



On Mon, 23 Mar 2020 at 19:02, Stephen Whitmarsh <stephen.whitmarsh at gmail.com>
wrote:

> Hi Amira,
>
> Welcome!
>
> I would indeed help if you could describe a bit more of your script
> getting here, especially the cfg that you are using, and the data structure
> that you are trying to run ft_timelockanalysis on (EEG_ft). Concerning the
> latter, you can e.g. copy-paste the output of the command line when you
> type EEG_ft.
>
> Cheers,
> Stephen
>
> Op ma 23 mrt. 2020 om 19:12 schreef Amira Korkor <amira.korkor at gmail.com>:
>
>> Hello,
>> I am new to Fieldtrip and this forum so please feel free to let me know
>> if the information I'm providing is sufficient to answer my question. I'm
>> having trouble with the timelockanalysis function as below. Does anyone
>> know why this might be happening?
>> Thanks for your help,
>> Amira
>>
>> I'm running the following script in MATLAB_R2018b / fieldtrip-20181231. I
>> have tried running it on multiple older versions of Fieldtrip and gotten
>> similar errors:
>> *ERP(cond_i).erps(part_i) = ft_timelockanalysis (cfg, EEG_ft);*
>>
>> and receiving the following error:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *Error using tabular/reshape (line 194)Undefined function 'reshape' for
>> input arguments of type 'table'.Error in ft_selectdata>squeezedim (line
>> 1220)  x = reshape(x, [siz(~dim) 1]);Error in ft_selectdata (line 381)
>> varargin{i}.(datfield{j}) = squeezedim(varargin{i}.(datfield{j}),
>> ~keepdim);Error in ft_timelockanalysis (line 195)data   =
>> ft_selectdata(tmpcfg, data);*
>>
>>
>> _______________________________________________
>> fieldtrip mailing list
>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>> https://doi.org/10.1371/journal.pcbi.1002202
>>
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200323/d1d587c3/attachment.htm>


More information about the fieldtrip mailing list