This function is used to get the set of cortical area IDs. --- Syntax keyset = vb_get_keyset_area(areafile) --- Input areafile: Cortical area file (.area.mat). --- Optional input --- Output keyset{i}: Set of IDs of cortical areas. --- Example >> areafile = './TY/data/TY.area.mat'; >> key = vb_get_keyset_area(area); --- History 2004-10-09 Taku Yoshioka Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function keyset = vb_get_keyset_area(areafile) 0002 % This function is used to get the set of cortical area IDs. 0003 % 0004 % --- Syntax 0005 % keyset = vb_get_keyset_area(areafile) 0006 % 0007 % --- Input 0008 % areafile: Cortical area file (.area.mat). 0009 % 0010 % --- Optional input 0011 % 0012 % --- Output 0013 % keyset{i}: Set of IDs of cortical areas. 0014 % 0015 % --- Example 0016 % >> areafile = './TY/data/TY.area.mat'; 0017 % >> key = vb_get_keyset_area(area); 0018 % 0019 % --- History 0020 % 2004-10-09 Taku Yoshioka 0021 % 0022 % Copyright (C) 2011, ATR All Rights Reserved. 0023 % License : New BSD License(see VBMEG_LICENSE.txt) 0024 0025 if exist(areafile) ~= 2 0026 error('Area data file is not found.'); 0027 keyset = []; 0028 else 0029 load(areafile,'Area') 0030 keyset = cell(length(Area),1); 0031 for i = 1:length(Area) 0032 keyset{i} = Area{i}.key; 0033 end 0034 end