set element color to display. [USAGE] [obj] = vb_display_factor_set_element_color(<obj>, <mtype_cell>); [IN] obj : display_factor object mtype_cell : marker type list {1xN} marker type is the same as defined by plot function. mtype_cell{k} represent color or display_factor.element{k} . [OUT] obj : display_factor object Author: rhayashi Created: 2007-07-18 Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [obj] = vb_display_factor_set_element_color(obj, mtype_cell) 0002 % set element color to display. 0003 % [USAGE] 0004 % [obj] = vb_display_factor_set_element_color(<obj>, <mtype_cell>); 0005 % [IN] 0006 % obj : display_factor object 0007 % mtype_cell : marker type list {1xN} 0008 % marker type is the same as defined by plot function. 0009 % mtype_cell{k} represent color or display_factor.element{k} . 0010 % [OUT] 0011 % obj : display_factor object 0012 % 0013 % Author: rhayashi 0014 % Created: 2007-07-18 0015 % 0016 % Copyright (C) 2011, ATR All Rights Reserved. 0017 % License : New BSD License(see VBMEG_LICENSE.txt) 0018 0019 % 0020 % --- Previous check 0021 % 0022 if ~exist('obj', 'var'), error('obj is a required parameter.'); end 0023 if ~exist('mtype_cell', 'var') 0024 error('mtype_cell is a required parameter.'); 0025 end 0026 0027 % 0028 % --- Main Procedure 0029 % 0030 obj.mtype_cell = mtype_cell; 0031 0032 % 0033 % --- After check 0034 % 0035 if nargout ~= 1 0036 error('function caller should receive obj.'); 0037 end