Changeset 925 for trunk/src/@xmltree/set.m
- Timestamp:
- Feb 17, 2016, 12:52:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/@xmltree/set.m
r723 r925 7 7 % parameter - property name 8 8 % value - property value 9 %_______________________________________________________________________ 9 %__________________________________________________________________________ 10 10 % 11 11 % Set object properties given its uid and pairs parameter/value 12 12 % The tree parameter must be in input AND in output 13 %_______________________________________________________________________ 14 % @(#)set.m Guillaume Flandin 02/03/2713 %__________________________________________________________________________ 14 % Copyright (C) 2002-2011 http://www.artefact.tk/ 15 15 16 error(nargchk(4,4,nargin)); 16 % Guillaume Flandin 17 % $Id: set.m 4460 2011-09-05 14:52:16Z guillaume $ 18 19 20 %error(nargchk(4,4,nargin)); 17 21 18 22 if iscell(uid), uid = [uid{:}]; else uid = uid(:); end 19 23 20 24 for i=1:length(uid) 21 22 25 tree.tree{uid(i)} = builtin('subsasgn', tree.tree{uid(i)}, struct('type','.','subs',parameter), value); 26 %tree.tree{uid(i)} = setfield(tree.tree{uid(i)},parameter,value); 23 27 end
Note: See TracChangeset
for help on using the changeset viewer.