<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Try plotting abs(allitc) because the tftopo cannot plot complex values. allitc contains both the amplitude and the phase of the ITC (this was not true in the old timef() function where the phase was lost).<div><br></div><div>Best,</div><div><br></div><div>Arno</div><div><br></div><div><div><div>On 5 oct. 08, at 13:22, Tae-Ho Lee wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Dear collegues, </span></span></font></div> <div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><font></font> </span></span></div> <div><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Theasedays, I've tried to plot ITC value with topoplot. </span></span></font></div> <div><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">According to below syntax, i computed all value (ERSP, ITC) across channels.</span></span></font></div> <div><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">I can't, however, plot the ITC value with tftopo function. </span></span></font></div> <div><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">It looks that allitc and allersp matrix are something different. </span></span></font></div> <div><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">I think that the problem is due to the matrix structure. </span></span></font></div> <div><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Any help would be much appreciated.</span></span></font></div> <div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><font></font> </span></span></div> <div><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Sincerely</span></span></font></div> <div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><font></font> </span></span></div> <div><font><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Lee</span></span></font></font></div><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> </span></span><div><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><br></span></span></font></div></font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> </span></span><div><font><font><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">---------------------------------</span></span></font></font></font></div> <div><font><font><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">for elec = 1:EEG.nbchan<br> [ersp,itc,powbase,times,freqs,erspboot,itcboot] = pop_newtimef(EEG, 1, elec, [EEG.xmin EEG.xmax]*1000, [3 0.5], 'freqs', [20 60], 'padratio', 16, 'plotphase', 'off', 'timesout', 60, 'alpha', .001, 'plotersp','off', 'plotitc','off');<br> if elec == 1 </span></span></font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> </span></span></font></font></div> <div><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> allersp = zeros([ size(ersp) EEG.nbchan]);<br> allitc = zeros([ size(itc) EEG.nbchan]);<br> allpowbase = zeros([ size(powbase) EEG.nbchan]);<br> alltimes = zeros([ size(times) EEG.nbchan]);<br> allfreqs = zeros([ size(freqs) EEG.nbchan]);<br> allerspboot = zeros([ size(erspboot) EEG.nbchan]);<br> allitcboot = zeros([ size(itcboot) EEG.nbchan]);<br> end;<br> allersp (:,:,elec) = ersp;<br> allitc (:,:,elec) = itc;<br> allpowbase (:,:,elec) = powbase;<br> alltimes (:,:,elec) = times;<br> allfreqs (:,:,elec) = freqs;<br> allerspboot (:,:,elec) = erspboot;<br> allitcboot (:,:,elec) = itcboot;<br> end;<br></span></span></font><i><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><br></span></span></i><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">figure;<br> tftopo(allitc,alltimes(:,:,1),allfreqs(:,:,1),'mode','ave','limits', [nan nan nan 60 -0.5 0.5],'signifs', allitcboot, 'sigthresh', [6], 'timefreqs', [200 20; 350 30], 'chanlocs', EEG.chanlocs);</span></span></font></div> <div><font><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">---------------------------------</span></span></font></div></div></blockquote></div></div></body></html>