Load coregistration matrix. [syntax] C = vb_load_cortex_pmat(brain_file,key) [input] brain_file: <<string>> Cortical surface model file (.brain.mat). key : <<string>> ID of coregistration matrix. [output] C : <<matrix>> Coregistration matrix. 2010-11-18 Taku Yoshioka Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function C = vb_load_cortex_pmat(brain_file,key) 0002 % Load coregistration matrix. 0003 % 0004 % [syntax] 0005 % C = vb_load_cortex_pmat(brain_file,key) 0006 % 0007 % [input] 0008 % brain_file: <<string>> Cortical surface model file (.brain.mat). 0009 % key : <<string>> ID of coregistration matrix. 0010 % 0011 % [output] 0012 % C : <<matrix>> Coregistration matrix. 0013 % 0014 % 2010-11-18 Taku Yoshioka 0015 % 0016 % Copyright (C) 2011, ATR All Rights Reserved. 0017 % License : New BSD License(see VBMEG_LICENSE.txt) 0018 0019 load(brain_file,'Call'); 0020 0021 for i=1:length(Call.key) 0022 if strcmp(Call.key{i},key), 0023 C = Call.C{i}; 0024 return; 0025 end; 0026 end; 0027 0028 error(['Coregistration matrix ''' key ''' does not exist.']); 0029 0030 return;