<HTML><HEAD>
<META content="text/html; charset=iso-8859-15" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.23588"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Dear all,</DIV>
<DIV> </DIV>
<DIV>I am trying to run the scripts on TMS-EEG tutorial (<A href="http://www.fieldtriptoolbox.org/tutorial/tms-eeg">http://www.fieldtriptoolbox.org/tutorial/tms-eeg</A>).</DIV>
<DIV> </DIV>
<DIV>However, when reject ICA components, it gave me an error message. </DIV>
<DIV> </DIV>
<DIV>Specifically, when I ran this command in Matlab: <STRONG>data_tms_clean_segmented = ft_rejectcomponent<SPAN class=br0>(</SPAN>cfg, comp_tms<SPAN class=br0>)</SPAN>;</STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV>The error message is :</DIV>
<DIV><FONT color=#ff0000>Error using cat<BR>Dimensions of matrices being concatenated are not consistent.</FONT></DIV>
<DIV><FONT color=#ff0000></FONT> </DIV>
<DIV><FONT color=#ff0000>Error in ft_apply_montage (line 245)<BR> tmp = cat(1, data_unused.trial{:});</FONT></DIV>
<DIV><FONT color=#ff0000></FONT> </DIV>
<DIV><FONT color=#ff0000>Error in ft_rejectcomponent (line 184)<BR>data = ft_apply_montage(data, montage, 'keepunused', keepunused, 'feedback', cfg.feedback);</FONT></DIV>
<DIV> </DIV>
<DIV>It went through when I added an input data for ft_rejectcomponent like this</DIV>
<DIV>data_tms_clean_segmented = ft_rejectcomponent(cfg, comp_tms, <STRONG>data_tms_segmented</STRONG>);</DIV><PRE class="code matlab"><FONT face=Tahoma>Although the results I got look similar to the figures on the webpage, please let me know if there are some fundamental issues of adding the data-input. <BR></FONT><FONT face=Tahoma></FONT></PRE><PRE class="code matlab"><FONT face=Tahoma>Any suggestions will be appreciated!</PRE></FONT><PRE class="code matlab"><FONT face=Tahoma>Xiaoming </FONT></PRE><PRE class="code matlab"><FONT face=Tahoma></FONT> </PRE><PRE class="code matlab"><FONT face=Tahoma> </PRE></FONT><PRE class="code matlab"><FONT face=Tahoma> </PRE></FONT><PRE class="code matlab"><FONT face=Tahoma></FONT> </PRE><PRE class="code matlab"><FONT face=Tahoma></FONT> </PRE><PRE class="code matlab"><FONT face=Tahoma></FONT> </PRE><PRE class="code matlab"><FONT face=Tahoma></FONT> </PRE>
<DIV> </DIV></BODY></HTML>