GETCELLSTRUCT retrieves the field values MATLAB cell array of structures VALUES = GETCELLSTRUCT(CELLARRAY,'field',INDEX,M,N) VALUES = GETCELLSTRUCT(CELLARRAY,'field',INDEX,M) can be used for one dimensional vectors VALUES = GETCELLSTRUCT(CELLARRAY,'field',INDEX) is the same as GETCELLSTRUCT(CELLARRAY,'field',index,1,1) if the field data is a scalar VALUES = GETCELLSTRUCT(CELLARRAY,'field',INDEX) is a MATLAB cell array of strings if specified fields contain strings. See also ATGETFIELDVALUES SETCELLSTRUCT FINDCELLS
0001 function values = getcellstruct(CELLARRAY,field,index,varargin) 0002 %GETCELLSTRUCT retrieves the field values MATLAB cell array of structures 0003 % 0004 % VALUES = GETCELLSTRUCT(CELLARRAY,'field',INDEX,M,N) 0005 % 0006 % VALUES = GETCELLSTRUCT(CELLARRAY,'field',INDEX,M) can be used 0007 % for one dimensional vectors 0008 % 0009 % VALUES = GETCELLSTRUCT(CELLARRAY,'field',INDEX) is the same as 0010 % GETCELLSTRUCT(CELLARRAY,'field',index,1,1) if the field data 0011 % is a scalar 0012 % 0013 % VALUES = GETCELLSTRUCT(CELLARRAY,'field',INDEX) is a MATLAB cell array 0014 % of strings if specified fields contain strings. 0015 % 0016 % See also ATGETFIELDVALUES SETCELLSTRUCT FINDCELLS 0017 0018 values=atgetfieldvalues(CELLARRAY(index),field,varargin); 0019 end