<div dir="ltr"><div>Hello Stephen,</div><div>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!</div><div>Many thanks,</div><div>Amira<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 23 Mar 2020 at 19:02, Stephen Whitmarsh <<a href="mailto:stephen.whitmarsh@gmail.com">stephen.whitmarsh@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Amira,<div><br></div><div>Welcome!</div><div><br></div><div>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.</div><div><br></div><div>Cheers,</div><div>Stephen</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op ma 23 mrt. 2020 om 19:12 schreef Amira Korkor <<a href="mailto:amira.korkor@gmail.com" target="_blank">amira.korkor@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div>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?</div><div>Thanks for your help,</div><div>Amira<br></div><div><br>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:</div><div><b>ERP(cond_i).erps(part_i) = ft_timelockanalysis (cfg, EEG_ft);</b><br><br>and receiving the following error:<br><b>Error using tabular/reshape (line 194)<br>Undefined function 'reshape' for input arguments of type 'table'.<br><br>Error in ft_selectdata>squeezedim (line 1220)<br>  x = reshape(x, [siz(~dim) 1]);<br><br>Error in ft_selectdata (line 381)<br>    varargin{i}.(datfield{j}) = squeezedim(varargin{i}.(datfield{j}), ~keepdim);<br><br>Error in ft_timelockanalysis (line 195)<br>data   = ft_selectdata(tmpcfg, data);</b><div><br><br></div></div></div></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>