<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Michele,<div><br></div><div>timef and newtimef should be backward compatible.</div><div>The erspboot matrix returned by newtimef may depend on the type of statistics that is being used.</div><div><br></div><div>I have just checked and the default (when you call newtimef from the EEGLAB graphic interface using menu item "Plot > Time-frequency transform > Channel time-frequency" is (nfreqs,2). It simply needs to be transposed for tftopo.</div><div><br></div><div>If you are using other types of statistics ('boottype' option), then in some case you cannot use tftopo to mask the data. However, if the erspboot matrix is of size [nfreq , times], you may simply mask the ersp matrix (ersp .* erspboot).</div><div><br></div><div>Hope this helps,</div><div><br></div><div>Best,</div><div><br></div><div>Arno</div><div><br><div><div>On Aug 31, 2012, at 2:24 AM, Michele Barsotti wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">Dear experts,<br><br>I would like to plot a tftopo image using the data extracted from the newtimef() function.<br><br>In the wiki-eeglab, I found  the script for plotting the same graph, but using the output of the function timef() instead of the function newtimef(). <br>
(<a href="http://sccn.ucsd.edu/wiki/Chapter_02:_Writing_EEGLAB_Scripts">http://sccn.ucsd.edu/wiki/Chapter_02:_Writing_EEGLAB_Scripts</a>)<br><br>Then, the problem concerns the erspboot:<br>- while the function timef() provides the erspboot Matrix (2,nfreqs) of [lower;upper] ERSP significance diffs,  <br>
the function newtimef() returns the erspboot as a mask for the ersp values that is a matrix of dimension [nfreq , times] even if the help of this function says that "erspboot  = (nfreqs,2) matrix of [lower upper] ERSP significance." , like the help of timef() do.<br>
<br>I would like to know if there is a way to obtain the min and max boot values from the mask or a built-in function that transforms the output of newtimef() with that of timef().<br><br> I report here the output obtained with  the parameters "... 'timesout'    [895]  'nfreq'  [19] ..." <br>
        ersp: [19x895 single]<br>         itc: [19x895 single]<br>     powbase: [1x19 single]<br>       times: [1x895 double]<br>       freqs: [1x19 double]<br>    erspboot: [19x895 logical]<br>     itcboot: [19x1 double]<br>
      tfdata: [19x895x17 single]<br><br>17 are the trials of my dataset.<br><br>Thanks in advance <br><br><br>-- <br>        -Michele-<br>
_______________________________________________<br>Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a></blockquote></div><br></div></body></html>