Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
example:make_leadfields_using_different_headmodels [2017/11/27 10:34]
robert
example:make_leadfields_using_different_headmodels [2017/11/27 10:54] (current)
robert updated plotting of local spheres
Line 67: Line 67:
 ctf_ls = ft_read_vol(fullfile('​Subject01.ds',​ '​default.hdm'​));​ ctf_ls = ft_read_vol(fullfile('​Subject01.ds',​ '​default.hdm'​));​
  
-% plotting the head model together with the head shape +% plotting the headmodel 
-ft_plot_sens(grad);​ +ft_plot_sens(grad, '​unit',​ '​cm'​); 
-ft_plot_vol(ctf_ls,​ '​facecolor',​ '​cortex'​);​ +ft_plot_vol(ctf_ls,​ '​facecolor',​ '​cortex', '​grad',​ grad, '​unit',​ 'cm'); 
-ft_plot_headshape(shape);​ +ft_plot_headshape(shape, '​unit',​ '​cm'​); 
- +
 % prepare_leadfield; ​ % prepare_leadfield; ​
 cfg                 = []; cfg                 = [];
Line 103: Line 103:
  
 % plotting the headmodel % plotting the headmodel
-ft_plot_sens(grad);​ +ft_plot_sens(grad, '​unit',​ '​cm'​); 
-ft_plot_vol(ls_headshape,​ '​facecolor',​ '​cortex'​);​ +ft_plot_vol(ls_headshape,​ '​facecolor',​ '​cortex', '​grad',​ grad, '​unit',​ 'cm'); 
-ft_plot_headshape(shape);​+ft_plot_headshape(shape, '​unit',​ '​cm'​);
  
 % prepare_leadfield for local spheres headmodel with ctf headshape % prepare_leadfield for local spheres headmodel with ctf headshape
Line 336: Line 336:
  
 </​code>​ </​code>​
-