Home > vbmeg > demo > tutorial_for_vbmeg2 > advanced > show_connectivity.m

show_connectivity

PURPOSE ^

Show connectivity

SYNOPSIS ^

function show_connectivity(p)

DESCRIPTION ^

 Show connectivity

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function show_connectivity(p)
0002 % Show connectivity
0003 %
0004 % Copyright (C) 2011, ATR All Rights Reserved.
0005 % License : New BSD License(see VBMEG_LICENSE.txt)
0006 
0007 disp(mfilename);
0008 
0009 % Make directory to save figures
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 % Set input files
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 % Show connectivity on brain
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 % Show connectivity matrix
0025 dmri_plot_dmri_connections_matrix(dmri_file, brain_file, area_file);
0026 vb_savefig_as_shown(gcf, fullfile(save_dir, 'matrix'))

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005