TopoplotTFR

Vladimir Litvak litvak at TX.TECHNION.AC.IL
Thu Mar 1 16:22:24 CET 2007


Here is my suggestion for a fix. It should handle any number of dimensions,
which is perhaps slightly overkill for this case, but hope it works. I
tested it for time and frequency.



Best,



Vladimir



  _____

From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On Behalf
Of Vladimir Litvak
Sent: Thursday, March 01, 2007 2:46 PM
To: FIELDTRIP at NIC.SURFNET.NL
Subject: Re: [FIELDTRIP] TopoplotTFR



I looked at the code and the problem is in line 264 of topoplotER where you
assume that the yparam is always the second dimension in the data and the
xparam is always the third. When this assumption is false, the code fails.



Best,



Vladimir



  _____

From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On Behalf
Of Jan Mathijs Schoffelen
Sent: Thursday, March 01, 2007 12:13 PM
To: FIELDTRIP at NIC.SURFNET.NL
Subject: Re: [FIELDTRIP] TopoplotTFR



Oops. I'm sorry, I misread your mail; I thought you were talking about
multiplotTFR.

Forget what I said before. To my knowledge, a subplotted topoplotTFR only
works in the time dimension, but I'm not sure. Did you check the code?

So if it is true, that it only works in the time dimension, there are two
ways of doing what you want:



Repeatedly call topoplotTFR for different frequencies,

or adjust the function such that it also works the other way.



Maybe you could look into if and why the assignment of the yparam and xparam
should always be 'time', and 'freq' respectively. I guess the original
reason stems from the fact that we are used to depict TFRs like that.



Yours,



Jan-Mathijs





  _____

From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On Behalf
Of Vladimir Litvak
Sent: Thursday, March 01, 2007 1:00 PM
To: FIELDTRIP at NIC.SURFNET.NL
Subject: [FIELDTRIP] TopoplotTFR



Dear all,



I'm trying to use topoplotTFR for multichannel data that has both time and
frequency dimension. When I configure:



cfg.xparam='time';

cfg.yparam='freq';

cfg.xlim=[-2:0.1:0];

cfg.ylim=[8 12];



I get multiple plots corresponding to different time windows. However when I
try:



cfg.xparam='freq';

cfg.yparam='time';

cfg.xlim=[0:2:40];

cfg.ylim=[-1 0];



or



cfg.xparam='time';

cfg.yparam='freq';

cfg.xlim=[-1 0];

cfg.ylim=[0:2:40];



it doesn't work. I either get an error or a single plot. How do I get a
series of plots for different frequencies with the same time window?





Thanks,



Vladimir



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20070301/29bd64e7/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: topoplotER.m
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20070301/29bd64e7/attachment.ksh>


More information about the fieldtrip mailing list