<div dir="ltr">Hi,<div><br><div>I compute erpimages for my STUDY using the following line</div><div><div><br></div><div>[STUDY ALLEEG] = std_precomp(STUDY, ALLEEG, {},'interp','on','recompute','on','erpim','on','erpimparams',{'nlines' 70 'smoothing' 5 'phasesort' [0 25 8 13 180]});</div>

<div><br></div><div>It computes fine but crashes when reading, with (e.g.)</div><div><br></div><div><div>STUDY = std_erpimageplot(STUDY,ALLEEG,'channels',{'O1'});</div></div><div><br></div><div>for at least one of my subjects, the erpimage has one line less/more than all others, so it crashes in std_readfile at line 243.</div>

<div>This seems to come from erpimage/movav, where the moving average is computed across trials. This function outputs a 1536 x 54 matrix for some subjects and 1536 x 55 for some others. I suppose it's a problem with rounding, decimation factor or such, and I'm out of ideas to fix it.</div>

<div><br></div><div>I tried a few 'smoothing' constants (5 10 ...) the only fix I found so far is to not smooth the erpimage...</div></div><div>Any idea/comment on this is appreciated.</div><div>I use eeglab 13.</div>

<div>Max</div></div></div>