0001 function result = vb_is_inflate_cortex(brainfile)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 load(brainfile,'V*');
0018
0019 if ~isempty( findstr(brainfile, '.brain.mat') )
0020 brain_id = brainfile(1:findstr(brainfile, '.brain.mat')-1);
0021 else
0022 error(['Brain file name is not correct:' brainfile]);
0023 end
0024
0025 if exist('Vinflate','var')
0026 result = SUCCESS;
0027 else
0028
0029 brainfile = [brain_id '.inflate.mat'];
0030 if exist(brainfile,'file')
0031 load(brainfile, 'V')
0032 if exist('V','var')
0033 result = SUCCESS;
0034 else
0035 result = FAILURE;
0036 end
0037 else
0038 result = FAILURE;
0039 end
0040 end