set coordinate type [USAGE} [obj] = brain_data_set_coord_type(<obj>, <coord_type>); [IN] obj : brain_data object coord_type : coordinate type to set [OUT] obj : brain_data object Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [obj] = brain_data_set_coord_type(obj, coord_type) 0002 % set coordinate type 0003 % [USAGE} 0004 % [obj] = brain_data_set_coord_type(<obj>, <coord_type>); 0005 % [IN] 0006 % obj : brain_data object 0007 % coord_type : coordinate type to set 0008 % [OUT] 0009 % obj : brain_data object 0010 % 0011 % Copyright (C) 2011, ATR All Rights Reserved. 0012 % License : New BSD License(see VBMEG_LICENSE.txt) 0013 0014 % 0015 % --- Previous check 0016 % 0017 if ~exist('obj', 'var'), error('obj is a required parameter.'); end 0018 if ~exist('coord_type', 'var') 0019 error('coord_type is a required parameter.'); 0020 end 0021 0022 % 0023 % --- Main Procedure 0024 % 0025 obj.coord_type = coord_type; 0026 0027 % 0028 % --- After check 0029 % 0030 if nargout ~= 1 0031 error('function caller should receive obj.'); 0032 end