vbmeg2_plot_functions
vb_plot_cortex
Description
Plots cortex and current.
Syntax
[h] = vb_plot_cortex(plot_parm, V, F, inf_C, J, Jmin, Jmax);
Parameters
- plot_parm
- <<structure>> plot parameter. In order to get the default parameters, execute vb_set_plot_parm.
- .LRflag
- <<string>> Cortex to plot('L': Left, 'R':Right, 'LR': Both cortex).
- .cmap
- <<integer>> Colormap type(1:'hot', otherwise:'jet').
- .wmode
- <<integer>> (1:Display current as absolute value, otherwise: Display current as it is).
- .color
- <<vector>> Cortex color. [R G B] Each range is 0 to 1.
- V
- Standard cortex vertices in VBMEG coordinate. [Nvertex x 3]
- F
- <<structure>> Triangle patch index structure.
- .F3R
- Triangle patch index of right hemisphere. [NRfaces x 3]
- .F3L
- Triangle patch index of left hemisphere. [NLfaces x 3]
- .F3
- Triangle patch index of both hemisphere. [Nfaces x 3]
- inf_C
- Color correspoding to Gyrus in inflate data.This is used for plotting 'Inflated' model. [Nvertex x 1]
- J
- cortical current [Nvertex x 1]
- Jmin
- <<double>> (optional)Minimum current threshold to display.
- Jmax
- <<double>> (optional)Maximum current threshold to display.
Returns
- h
- handle of MATLAB light object.
vb_plot_area
Description
Plots cortical area map.
Syntax
vb_plot_area(brain_file, area_file, area_keys, area_colors, Inflate, LR);
Parameters
- brain_file
- VBMEG Cortical model file(.brain.mat)
- area_file
- (optional)VBMEG Cortical area file(.area.mat).
if not specified, only cortex model is plotted.
- area_keys
- (optional)plot area name list. {Narea x 1}
if not specified, all the area is plotted.
- area_colors
- (optional)color of area list([R G B] each from 0 to 1.) [Narea x 3]
if not specified, colormap:hsv(Narea) is used.
- Inflate
- (optioal)
- 1
- Inflate model. [default]
- 0
- Original model.
- LR
- (optional)
- 'LR'
- Left and Right brain is plotted. [default]
- 'L'
- Left brain is plotted.
- 'R'
- Right brain is plotted.
vb_plot_sensor_2d
Description
Plots a topographic map of M/EEG field as a 2D field.
Syntax
vb_plot_sensor_2d(pos, data, clim);
Parameters
- pos
- 3d Channel position(x,y,z) list. (see vb_load_channel) [Nsensors x 3]
- data
- Signal value. (see vb_load_meg_data) [Nsensors x 1]
- clim
- (optional)Minimum and maximum of contour map. This value is used to call MATLAB function: caxis(clim) [1x2 double]
Returns
None
Note
If the coordinate system of the sensor position pos is RAS (default of VBMEG), the contour plot will be drawn in the neurological convention, i.e., the view is above the subject and the right of the plot corresponds to the right of the subject.