[Eeglablist] plotting tftopo with ITC across channels
arno delorme
arno at ucsd.edu
Sat Oct 18 05:22:35 PDT 2008
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).
Best,
Arno
On 5 oct. 08, at 13:22, Tae-Ho Lee wrote:
> Dear collegues,
>
> Theasedays, I've tried to plot ITC value with topoplot.
> According to below syntax, i computed all value (ERSP, ITC) across
> channels.
> I can't, however, plot the ITC value with tftopo function.
> It looks that allitc and allersp matrix are something different.
> I think that the problem is due to the matrix structure.
> Any help would be much appreciated.
>
> Sincerely
>
> Lee
>
> ---------------------------------
> for elec = 1:EEG.nbchan
> [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');
> if elec == 1
> allersp = zeros([ size(ersp) EEG.nbchan]);
> allitc = zeros([ size(itc) EEG.nbchan]);
> allpowbase = zeros([ size(powbase) EEG.nbchan]);
> alltimes = zeros([ size(times) EEG.nbchan]);
> allfreqs = zeros([ size(freqs) EEG.nbchan]);
> allerspboot = zeros([ size(erspboot) EEG.nbchan]);
> allitcboot = zeros([ size(itcboot) EEG.nbchan]);
> end;
> allersp (:,:,elec) = ersp;
> allitc (:,:,elec) = itc;
> allpowbase (:,:,elec) = powbase;
> alltimes (:,:,elec) = times;
> allfreqs (:,:,elec) = freqs;
> allerspboot (:,:,elec) = erspboot;
> allitcboot (:,:,elec) = itcboot;
> end;
>
> figure;
> 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);
> ---------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20081018/5f80ff3d/attachment.html>
More information about the eeglablist
mailing list