Home > vbmeg > functions > tool_box > dmri_processor > functions > util > dmri_plot_dmri_connections_matrix.m

dmri_plot_dmri_connections_matrix

PURPOSE ^

Plot dmri connection between regions.

SYNOPSIS ^

function h = dmri_plot_dmri_connections_matrix(dmri_file, brain_file, area_file)

DESCRIPTION ^

 Plot dmri connection between regions.
 [Usage]
    h = dmri_plot_dmri_connections_matrix(dmri_file, brain_file, area_file);

 [Input]
    dmrifile  : connectivity matrix obtained from DMRI processor
    brainfile : brainfile of VBMEG
    areafile  : areafile of VBMEG. coarse region parcellation such as AAL and
                brodmann. AAL is recommended.

 [Output]
    h : figure handle

 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 h = dmri_plot_dmri_connections_matrix(dmri_file, brain_file, area_file)
0002 % Plot dmri connection between regions.
0003 % [Usage]
0004 %    h = dmri_plot_dmri_connections_matrix(dmri_file, brain_file, area_file);
0005 %
0006 % [Input]
0007 %    dmrifile  : connectivity matrix obtained from DMRI processor
0008 %    brainfile : brainfile of VBMEG
0009 %    areafile  : areafile of VBMEG. coarse region parcellation such as AAL and
0010 %                brodmann. AAL is recommended.
0011 %
0012 % [Output]
0013 %    h : figure handle
0014 %
0015 % Copyright (C) 2011, ATR All Rights Reserved.
0016 % License : New BSD License(see VBMEG_LICENSE.txt)
0017 
0018 %
0019 % --- Previous check
0020 %
0021 if nargin < 3
0022     error('Please check usage.');
0023 end
0024 
0025 if exist(dmri_file, 'file') ~= 2
0026     error('dmri_file not found : %s', dmri_file);
0027 end
0028 if exist(brain_file, 'file') ~= 2
0029     error('brain_file not found : %s', brain_file);
0030 end
0031 if exist(area_file, 'file') ~= 2
0032     error('area_file not found : %s', area_file);
0033 end
0034 
0035 %
0036 % --- Main Procedure
0037 %
0038 
0039 %  CC : region connectivity matrix (number of connections average over region vertices)
0040 %  DD : region distance matrix in unit meter  (distance average over region vertices).
0041 [CC,DD,xyz0,Keys0]=dmri_connections_regions_calc(dmri_file, brain_file, area_file);
0042 
0043 h = figure;
0044 set(h, 'Name', dmri_file, 'NumberTitle', 'off');
0045 
0046 % plot1
0047 subplot(2,1,1);
0048 imagesc(CC, [0 1]);
0049 colorbar;
0050 axis square;
0051 title('Connectivity matrix');
0052 
0053 % plot2
0054 subplot(2,1,2);
0055 imagesc(DD, [0 0.1]);
0056 colorbar;
0057 axis square;
0058 title('Distance matrix');

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