Changeset 925 for trunk/src/@xmltree/isfield.m
- Timestamp:
- Feb 17, 2016, 12:52:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/@xmltree/isfield.m
r723 r925 7 7 % parameter - a field of the root tree 8 8 % F - 1 if present, 0 otherwise 9 %_______________________________________________________________________ 9 %__________________________________________________________________________ 10 10 % 11 11 % Is parameter a field of tree{uid} ? 12 %_______________________________________________________________________ 13 % @(#)isfield.m Guillaume Flandin 01/10/3112 %__________________________________________________________________________ 13 % Copyright (C) 2002-2011 http://www.artefact.tk/ 14 14 15 error(nargchk(3,3,nargin)); 15 % Guillaume Flandin 16 % $Id: isfield.m 4460 2011-09-05 14:52:16Z guillaume $ 17 18 19 %error(nargchk(3,3,nargin)); 16 20 17 21 F = zeros(1,length(uid)); 18 22 for i=1:length(uid) 19 20 21 23 if isfield(tree.tree{uid(i)},parameter) 24 F(i) = 1; 25 end 22 26 end
Note: See TracChangeset
for help on using the changeset viewer.