0001 function show_connectivity(p)
0002
0003
0004
0005
0006
0007 disp(mfilename);
0008
0009
0010 save_dir = fullfile(p.fig_root, mfilename, p.sub);
0011 if exist(save_dir, 'dir') ~= 7
0012 vb_mkdir(save_dir);
0013 end
0014
0015
0016 dmri_file = fullfile(p.proj_root, p.dmri_dirname, p.connectivity_dirname, p.connectivity_file);
0017 brain_file = fullfile(p.proj_root, p.brain_dirname, [p.struct_name, '.brain.mat']);
0018 area_file = fullfile(p.proj_root, p.brain_dirname, [p.struct_name, '_aal.area.mat']);
0019
0020
0021 dmri_plot_dmri_connections_on_brain(dmri_file, brain_file, area_file);
0022 vb_savefig_as_shown(gcf, fullfile(save_dir, 'brain'))
0023
0024
0025 dmri_plot_dmri_connections_matrix(dmri_file, brain_file, area_file);
0026 vb_savefig_as_shown(gcf, fullfile(save_dir, 'matrix'))