<div dir="ltr"><div><div><div><div>Hello all,<br><br></div>I hope someone will be able to help with this. I'm trying to run the denoise_pca function on data after preprocessing, but I continue to get the following error:<br><br>Error using  ./ <br>Matrix dimensions must agree.<br><br>Error in ft_denoise_pca (line 193)<br>    s1   = s./max(s(:));<br><br></div>Could it be due to the use of the default for refchannel? Forgive me for asking such simple questions, but how do I go about choosing the reference channel? Do I just choose the cleanest channel from that particular set of preprocessed data?<br><br></div>Thanks in advance,<br><br></div>Ashley<br></div>