This function is used to get the set of cortial activity map IDs. --- Syntax keyset = vb_get_keyset_act(actfile) --- Input actfile: Cortical activity file (.act.mat). --- Optional input --- Output keyset{i}: Set of IDs of cortical activity maps. --- Example >> actfile = './TY/data/TY.act.mat'; >> key = vb_get_keyset_act(actfile); --- 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_act(actfile) 0002 % This function is used to get the set of cortial activity map IDs. 0003 % 0004 % --- Syntax 0005 % keyset = vb_get_keyset_act(actfile) 0006 % 0007 % --- Input 0008 % actfile: Cortical activity file (.act.mat). 0009 % 0010 % --- Optional input 0011 % 0012 % --- Output 0013 % keyset{i}: Set of IDs of cortical activity maps. 0014 % 0015 % --- Example 0016 % >> actfile = './TY/data/TY.act.mat'; 0017 % >> key = vb_get_keyset_act(actfile); 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(actfile) ~= 2 0026 error(['Activity map file is not found.']); 0027 keyset = []; 0028 else 0029 load(actfile,'Act') 0030 keyset = cell(length(Act),1); 0031 for i = 1:length(Act) 0032 keyset{i} = Act{i}.key; 0033 end 0034 end