<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Dear Clara,<br>
      <br>
      My feeling is that you illspecified the mask parameter.
      cfg,maskparameter should indeed be a field that you have to add to
      your data. It should have an equal length than your number of
      channels and consist of 1s and 0s. It is not possible to partially
      mask (at the moment). We might think about adding some alpha
      blending some day, though. <br>
      Also, please use the most recent FieldTrip version. Line 697 in
      the most recent version has nothing to do with masking. It might
      be a bug in an old version, which is fixed now.Hope it works for
      you with the most recent version for you, because for me it does
      ;)<br>
      <br>
      Your code should look something like this:<br>
      <font face="Courier New, Courier, monospace">data               =
        ...;<br>
        cfg                = [];<br>
        cfg.layout         = ...;<br>
        cfg.xlim           = [5 10];<br>
        cfg.zlim           = [0.08 0.2];<br>
        <br>
        data.mask          = ones(size(data.label));<br>
        data.mask(1:end/2) = 0; % I made this somethign random for me<br>
        cfg.maskparameter  = 'mask';<br>
        <br>
        ft_topoplotER(cfg, data);</font><br>
      <br>
      Should you keep on having problems, feel free to ask.<br>
      <br>
      Best,<br>
      Jörn<br>
      <br>
      PS: It's generally consider nice to say 'hello' before asking for
      help :)<br>
      <br>
      <br>
      On 12/11/2012 3:22 PM, Clara A. Scholl wrote:<br>
    </div>
    <blockquote
cite="mid:CAAHOyr5egX4gRXkrbQPN_=hEYVyUB2Ju+PEnW1OZcEO24nExGw@mail.gmail.com"
      type="cite">
      <pre wrap="">How can I specify cfg.maskparameter to mask out some channels when
plotting topoplots with ft_topoplotTFR?  When I specify a vector the
same length as the number of channels I'm plotting, I have an error
with line 697 of ft_topoplotTFR and get "??? Argument to dynamic
structure reference must evaluate to a valid field name."  I can see
that cfg.maskparameter should be a field of my data structure (datmask
= data.(cfg.maskparameter)), but I don't understand what that would
be.

More generally, I want to plot scalp topographies with some channels
masked out (made transparent, or set to zero/white where the colorbar
is modified to be white at zero) BUT I don't want to actually set
those values to zero, because doing so generates interpolation
artifacts.  What's the best strategy?  The cluster plotting tutorials
are very nice for showing the whole topography with a subset of
channels highlighted, but I find that the presence of channel markers
obscures the underlying topography.  I'd really appreciate any
guidance or references for how to mask out a part of the topography.

Thanks,
Clara
_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour 
Centre for Cognitive Neuroimaging
Radboud University Nijmegen 
Neuronal Oscillations Group
FieldTrip Development Team

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel:    +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
  </body>
</html>