Using the C Math Library | ![]() ![]() |
Accessing a Field
The simplest operation on a structure is retrieving data from one of the structure fields. To extract the image
field from the second structure in a structure array, use
mlfAssign(&str, mlfIndexRef(images, "(?).image", mlfScalar(2)));
image =
imagelist(2).image
performs the same operation in MATLAB.
![]() | Overview | Accessing the Contents of a Structure Field | ![]() |