[Matlab] Iterating over the Members in a Struct
Source
Loren on the Art of MATLAB: Iterating over Non-Numeric Values
Loren on the Art of MATLAB: Use Dynamic Field References
Syntax
fnames = fieldnames(s);
field = s.( fnames{n} );
Interesting people find this blog boring; only boring people find this blog interesting ...
Loren on the Art of MATLAB: Iterating over Non-Numeric Values
Loren on the Art of MATLAB: Use Dynamic Field References
fnames = fieldnames(s);
field = s.( fnames{n} );
Posted by
YYC
at
5:47 PM
0
comments
Labels: Matlab