<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Dear Peter,</div><div><br></div><div>My suggestion would be to use sourceplot, instead of sliceinterp. Sourceplot is a more modern version of sliceinterp and incorporates most (if not all) of sliceinterp's functionality (and more!).</div><div>The function is quite well documented, but to give you some handles:</div><div><br></div><div>cfg.method = 'slices';</div><div>cfg.nslices = a number but by default something like 20</div><div>cfg.funparameter = 'pow';</div><div>cfg.funcolorlim = [-15 15];</div><div><br></div><div>Additionally, you can specify a maskparameter, which will be used for opacity-mapping. This could be cfg.maskparameter = 'pow'.</div><div>There are several options for the opacity you can play with, but when not specifying anything, I believe you are already pretty much in the right direction.</div><div><br></div><div>Alternatively, you can create a new field in your data-structure, in which you control the opacity more explicitly, e.g.</div><div>data.mask = abs(data.pow) >10;</div><div>Note that when you want to plot the output of a statistics-function, there's usually a .mask-field associated with the data.</div><div><br></div><div>I hope this helps,</div><div><br></div><div>Yours,</div><div><br></div><div>Jan-Mathijs</div><div><br></div><br><div><html>On Apr 14, 2008, at 11:54 AM, Peter Praamstra wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite">  <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Dear FTers,</span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">I have a query regarding the sliceinterp function. I am trying to plot the sources of beta power changes. The source activities are the result of a comparison of left and right hand movement conditions, hence they have a mirror reversed distribution and amplitude, ranging from say -15 in one hemisphere to +15 in the opposite hemisphere. </span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br> </span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">In order to clip the displayed source activities to say [-10 -15] in one hemisphere and [10 15] in the other (and create opacity maps) I thought I could use cfg.clipsym = ‘yes’ (and cfg.maskclipsym).</span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">For instance:</span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">cfg = [];</span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">cfg.funparameter = </span></font><font face="Arial" color="#a020f0" size="2"><span style="font-size:10pt">'pow'</span></font><font face="Arial" size="2"><span style="font-size:10pt">;</span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">cfg.colmin = 5; </span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">cfg.colmax = 15; </span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">cfg.clipsym = </span></font><font face="Arial" color="#a020f0" size="2"><span style="font-size:10pt">'yes'</span></font><font face="Arial" size="2"><span style="font-size:10pt">;</span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br> </span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">However, this doesn’t seem to work since the clipping is performed on only one end of the scale, eliminating the mirror reversed source at the other end.</span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br> </span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Am I wrong in assuming cfg.clipsym would work here or am I using it in the wrong way? </span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br> </span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">(What I’m trying to do is exactly the same as realized in Figure 3 of Medendorp et al. CerCor 2007). </span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br> </span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Any suggestions?</span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br> </span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Peter Praamstra</span></font></div> <div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br> </span></font></div> <div align="left"></div>  <p>----------------------------------</p><p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p><p>  <a href="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</a></p><p>  <a href="http://www.ru.nl/fcdonders/fieldtrip/">http://www.ru.nl/fcdonders/fieldtrip/</a></p> </blockquote></div><br></body></html><p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>