SUBSREF Define field name indexing for provenance objects. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: SUBSREF Define field name indexing for provenance objects. EXAMPLES: All possible accesses are possible. VERSION: $Id: subsref.html,v 1.13 2008/03/31 10:27:45 hewitson Exp $ HISTORY: 31-01-07 M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function B = subsref(A, S) 0002 % SUBSREF Define field name indexing for provenance objects. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: SUBSREF Define field name indexing for provenance objects. 0007 % 0008 % EXAMPLES: All possible accesses are possible. 0009 % 0010 % VERSION: $Id: subsref.html,v 1.13 2008/03/31 10:27:45 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 ischar(S) 0019 in = char(S); 0020 if strcmp(in, 'Params') 0021 B = plist; 0022 return 0023 elseif strcmp(in, 'Version') 0024 VERSION = '$Id: subsref.html,v 1.13 2008/03/31 10:27:45 hewitson Exp $'; 0025 B = VERSION; 0026 return 0027 elseif strcmp(in, 'Category') 0028 CATEGORY = 'Internal'; 0029 B = CATEGORY; 0030 return 0031 end 0032 end 0033 0034 B = builtin('subsref', A, S); 0035