Hello Roemer,<div><br></div><div>Here's the cfg's and output from calls to ft_freqanalysis with method='wavelet' and the subsequent call to ft_singleplotTFR and the resulting error. The imagesc command will however plot the data at that channel imagesc(squeeze(wvpow.powspctrm(strmatch('A177',label),:,:)))  Thanks for any help!</div>
<div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">cfg              = [];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">cfg.output       = <span style="color: #b128f2">'pow'</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">cfg.channel      = <span style="color: #b128f2">'MEG'</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">cfg.method       = <span style="color: #b128f2">'wavelet'</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">cfg.foi          = 10:2:30;                       </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">cfg.toi          = 0.0:0.05:2.75;                  </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px"> </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">wvpow = ft_freqanalysis(cfg, data_spctrm);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px"> </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px">wvpow = </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px"> </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">        label: {246x1 cell}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #b128f2"><span style="color: #000000">       dimord: </span>'chan_freq_time'</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">         freq: [1x11 double]</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">         time: [1x56 double]</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">    powspctrm: [246x11x56 double]</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">         grad: [1x1 struct]</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">          cfg: [1x1 struct]</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px">          </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #339d2f">%Singleplot results</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">cfg              = [];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">cfg.channel      = <span style="color: #b128f2">'A177'</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">cfg.grad         =  grad;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">cfg.xlim         = [0.6 2.5];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">cfg.ylim         = [10 20];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px"> </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">figure;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">ft_singleplotTFR(cfg, wvpow)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px"> </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">Warning: (one of the) axis <span style="color: #b128f2">are</span> <span style="color: #b128f2">not</span> <span style="color: #b128f2">evenly</span> <span style="color: #b128f2">spaced</span> <span style="color: #b128f2">-></span> <span style="color: #b128f2">nans</span> <span style="color: #b128f2">cannot</span></p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #b128f2"><span style="color: #000000">be </span>masked<span style="color: #000000"> </span>out<span style="color: #000000"> </span>-><span style="color: #000000">  </span>cfg.masknans<span style="color: #000000"> </span>is<span style="color: #000000"> </span>set<span style="color: #000000"> </span>to<span style="color: #000000"> </span>'no'<span style="color: #000000">; </span></p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">> In ft_singleplotTFR <span style="color: #b128f2">at</span> <span style="color: #b128f2">296</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #b128f2"><span style="color: #000000">??? Attempted </span>to<span style="color: #000000"> </span>access<span style="color: #000000"> </span>c(6,1)<span style="color: #000000">; index </span>out<span style="color: #000000"> </span>of<span style="color: #000000"> </span>bounds<span style="color: #000000"> </span>because</p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">size(c)=[5,37].</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px"> </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #b128f2"><span style="color: #000000">Error </span>in<span style="color: #000000"> </span>==><span style="color: #000000"> </span>uimage<span style="color: #000000"> </span>at<span style="color: #000000"> </span>124</p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">            ce(j,i) = c(indi(end), indj(end));</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px"> </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #b128f2"><span style="color: #000000">Error </span>in<span style="color: #000000"> </span>==><span style="color: #000000"> </span>uimagesc<span style="color: #000000"> </span>at<span style="color: #000000"> </span>46</p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">    hh = uimage(varargin{:},<span style="color: #b128f2">'CDataMapping'</span>,<span style="color: #b128f2">'scaled'</span>);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px"> </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #b128f2"><span style="color: #000000">Error </span>in<span style="color: #000000"> </span>==><span style="color: #000000"> </span>ft_plot_matrix<span style="color: #000000"> </span>at<span style="color: #000000"> </span>192</p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">  h = uimagesc(hdat, vdat, cdat, clim);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px"> </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #b128f2"><span style="color: #000000">Error </span>in<span style="color: #000000"> </span>==><span style="color: #000000"> </span>ft_singleplotTFR<span style="color: #000000"> </span>at<span style="color: #000000"> </span>327</p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">  ft_plot_matrix(data.(cfg.xparam)(xidc),data.(cfg.yparam)(yidc),</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier">  TFR, <span style="color: #b128f2">'clim'</span>,[zmin,zmax],<span style="color: #b128f2">'tag'</span>,<span style="color: #b128f2">'cip'</span>)</p>
<div><br></div><br><div class="gmail_quote">On Sun, Jan 16, 2011 at 2:20 AM, Roemer van der Meij <span dir="ltr"><<a href="mailto:r.vandermeij@donders.ru.nl">r.vandermeij@donders.ru.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  
    
  
  <div bgcolor="#ffffff" text="#000000">
    <font face="Calibri">Hi Karl,<br>
      <br>
      Could you give some more information on the errors? Could you also
      post your cfg's? That will help in finding and fixing the bug.
      What FieldTrip version are you using?<br>
      <br>
      Best,<br>
      Roemer <br>
      <br>
      <br>
    </font><div><div></div><div class="h5"><br>
    On 15-1-2011 18:05, Karl Doron wrote:
    </div></div><blockquote type="cite"><div><div></div><div class="h5">Hello,
      <div><br>
      </div>
      <div>Has anyone else reported a problem with ft_singleplotTFR and
        output of the new specest module?</div>
      <div><br>
      </div>
      <div>multiplotTFR works, but 'interactive' method fails. </div>
      <div><br>
      </div>
      <div>It looks like the error occurs when trying to mask NaNs</div>
      <div><br>
      </div>
      <div>
        <p style="margin:0px;font:12px Courier;color:rgb(0, 161, 44)">% masking only possible for evenly spaced axis</p>
        <p style="margin:0px;font:12px Courier"><span style="color:rgb(51, 0, 255)">if</span> strcmp(cfg.masknans, <span style="color:rgb(197, 0, 245)">'yes'</span>) &&
          (~evenx || ~eveny)</p>
        <p style="margin:0px;font:12px Courier;color:rgb(197, 0, 245)"><span style="color:rgb(0, 0, 0)">  warning(</span>'(one
          of the) axis are not evenly spaced -> nans cannot be masked
          out ->  cfg.masknans is set to ''no'';'<span style="color:rgb(0, 0, 0)">)</span></p>
        <p style="margin:0px;font:12px Courier">  cfg.masknans = <span style="color:rgb(197, 0, 245)">'no'</span>;</p>
        <p style="margin:0px;font:12px Courier;color:rgb(51, 0, 255)">end</p>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>Thank you,</div>
      <div>karl doron</div>
      <div>UCSB</div>
      </div></div><pre><fieldset></fieldset>
_______________________________________________
fieldtrip mailing list
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
    </blockquote>
    <br>
    <div>-- <br>
      <font size="3"><font color="darkblue"><font face="calibri">Roemer
            van der Meij M.Sc.<br>
            PhD student<br>
            Donders Institute for Brain, Cognition and Behaviour<br>
            Centre for Cognition<br>
            P.O. Box 9104<br>
            6500 HE Nijmegen<br>
            The Netherlands<br>
            Tel: +31(0)24 3655932<br>
            E-mail: <a href="mailto:r.vandermeij@donders.ru.nl" target="_blank">r.vandermeij@donders.ru.nl</a><br>
          </font></font></font></div>
  </div>

<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>