set analyze_info to this class [USAGE] [obj] = bm_processor_set_analyze_info(<obj>, <analyze_info>); [IN] obj : bm_processor object analyze_info : analyze_info object [OUT] obj : bm_processor object Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [obj] = bm_processor_set_analyze_info(obj, analyze_info) 0002 % set analyze_info to this class 0003 % [USAGE] 0004 % [obj] = bm_processor_set_analyze_info(<obj>, <analyze_info>); 0005 % [IN] 0006 % obj : bm_processor object 0007 % analyze_info : analyze_info object 0008 % [OUT] 0009 % obj : bm_processor 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('analyze_info', 'var') 0019 error('analyze_info is a required parameter.'); 0020 end 0021 0022 % 0023 % --- Main Procedure 0024 % 0025 obj.analyze_info = analyze_info; 0026 0027 % 0028 % --- After check 0029 % 0030 if nargout ~= 1 0031 error('function caller should receive obj.'); 0032 end