Sliceinterp

jan-mathijs schoffelen j.schoffelen at PSY.GLA.AC.UK
Tue Apr 15 12:29:04 CEST 2008


Dear Peter,

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!).
The function is quite well documented, but to give you some handles:

cfg.method = 'slices';
cfg.nslices = a number but by default something like 20
cfg.funparameter = 'pow';
cfg.funcolorlim = [-15 15];

Additionally, you can specify a maskparameter, which will be used for  
opacity-mapping. This could be cfg.maskparameter = 'pow'.
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.

Alternatively, you can create a new field in your data-structure, in  
which you control the opacity more explicitly, e.g.
data.mask = abs(data.pow) >10;
Note that when you want to plot the output of a statistics-function,  
there's usually a .mask-field associated with the data.

I hope this helps,

Yours,

Jan-Mathijs


On Apr 14, 2008, at 11:54 AM, Peter Praamstra wrote:

> Dear FTers,
> 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.
>
> 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).
> For instance:
> cfg = [];
> cfg.funparameter = 'pow';
> cfg.colmin = 5;
> cfg.colmax = 15;
> cfg.clipsym = 'yes';
>
> 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.
>
> Am I wrong in assuming cfg.clipsym would work here or am I using it  
> in the wrong way?
>
> (What I’m trying to do is exactly the same as realized in Figure 3  
> of Medendorp et al. CerCor 2007).
>
> Any suggestions?
>
> Peter Praamstra
>
> ----------------------------------
>
> 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.
>
> http://listserv.surfnet.nl/archives/fieldtrip.html
>
> http://www.ru.nl/fcdonders/fieldtrip/
>


----------------------------------
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. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20080415/9ec379f3/attachment-0002.html>


More information about the fieldtrip mailing list