<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><font size="3">Hi Xiao,</font><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;">It might be not a plotting but a ICA issue. See here:</div><div>http://fieldtrip.fcdonders.nl/faq/why_does_my_ica_output_contain_complex_numbers</div><div>If your EEG data is rank deficient (due to preprocessing steps as re-referencing, channel interpolations... before ICA computation), ICA output can contain complex number, which is not a good thing. See the above FAQ to see how to solve it.</div><div>best,</div><div>Diego<br><br><hr id="zwchr" style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><blockquote style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><b>From: </b>"tongxiao meng" <mengtongxiao@gmail.com><br><b>To: </b>"fieldtrip" <fieldtrip@science.ru.nl><br><b>Sent: </b>Wednesday, 5 March, 2014 2:28:48 PM<br><b>Subject: </b>[FieldTrip] Help about ft_topoplotIC?<br><br><div dir="ltr"><div><span style="font-family:arial,sans-serif;font-size:14px">Dear all,</span>  <br></div><div><span style="font-family:arial,sans-serif;font-size:14px">My question is:</span> I use ICA to remove EOG artifacts, can't plot the components for visual inspection using ft_topoplotIC().</div>
<div><br></div><div><span style="font-family:arial,sans-serif;font-size:14px">Now for what I did:</span> <br></div><div><div>cfg=[];</div><div> cfg.grad =data.grad;</div><div> layout = ft_prepare_layout(cfg, data);</div></div>
<div><br></div><div><div>figure</div><div>cfg = [];</div><div>cfg.component = [1:20];      </div><div>cfg.layout    = layout ;</div><div>cfg.comment   = 'no';</div><div>ft_topoplotIC(cfg, comp)</div></div><div><br>
</div><div>??? Error using ==> surf at 78</div><div>X, Y, Z, and C cannot be complex.</div><div><br></div><div>Error in ==> ft_plot_topo at 251</div><div>  h = surf(Xi-deltax/2,Yi-deltay/2,zeros(size(Zi)), Zi, 'EdgeColor',</div>
<div>  'none', 'FaceColor', shading);</div><div><br></div><div>Error in ==> topoplot_common at 701</div><div>  ft_plot_topo(chanX,chanY,datavector,'interpmethod',cfg.interpolation,...</div><div>
<br></div><div>Error in ==> ft_topoplotTFR at 191</div><div>[cfg] = topoplot_common(cfg, varargin{:});</div><div><br></div><div>Error in ==> ft_topoplotIC at 142</div><div>    ft_topoplotTFR(cfg, varargin{:});</div>
<div><span style="font-family:arial,sans-serif;font-size:14px">how can I  </span>do?<br></div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:14px">Thanks a lot</span> <br></div><div style="">Xiao</div>
</div>
<br>_______________________________________________<br>fieldtrip mailing list<br>fieldtrip@donders.ru.nl<br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote><br><br><br><font size="3">-- </font><br><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><span name="x"></span>PhD Student<br>Neuronal Oscillations Group<br>Donders Institute for Brain, Cognition and Behaviour <br>Centre for Cognitive Neuroimaging<br>Radboud University Nijmegen <br>NL-6525 EN Nijmegen<br>The Netherlands<br>http://www.ru.nl/people/donders/lozano-soldevilla-d/<span name="x"></span><br></div></div></div></body></html>