SUBSASGN define index assignment for timeformat properties. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: SUBSASGN define index assignment for timeformat properties. EXAMPLES: All possible assignment are possible. VERSION: $Id: subsasgn.html,v 1.7 2008/03/31 10:27:44 hewitson Exp $ HISTORY: 31-01-07 M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function A = subsasgn(A, S, B) 0002 % SUBSASGN define index assignment for timeformat properties. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: SUBSASGN define index assignment for timeformat properties. 0007 % 0008 % EXAMPLES: All possible assignment are possible. 0009 % 0010 % VERSION: $Id: subsasgn.html,v 1.7 2008/03/31 10:27:44 hewitson Exp $ 0011 % 0012 % HISTORY: 31-01-07 M Hewitson 0013 % Creation 0014 % 0015 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0016 0017 % Check if this is a call for parameters 0018 if nargin == 2 0019 if isa(A, 'timeformat') && ischar(S) 0020 in = char(S); 0021 if strcmp(in, 'Params') 0022 A = plist; 0023 return 0024 elseif strcmp(in, 'Version') 0025 VERSION = '$Id: subsasgn.html,v 1.7 2008/03/31 10:27:44 hewitson Exp $'; 0026 A = VERSION; 0027 return 0028 elseif strcmp(in, 'Category') 0029 CATEGORY = 'Internal'; 0030 A = CATEGORY; 0031 return 0032 end 0033 end 0034 end 0035 0036 if isempty(A) 0037 A = timeformat(); 0038 end 0039 0040 A = builtin ('subsasgn', A, S, B); 0041