<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 class="gmail-adL"><br><br></div></div></div></div>