Using the C Math Library | ![]() ![]() |
Referencing a Single Structure in a Structure Array
To access a single structure within the structure array, use the standard array indexing function, mlfIndexRef()
. For example, to reference the forty-second image structure in a structure array, use this code:
mlfAssign(&B, mlfIndexRef(images, "(?)", mlfScalar(42)));
B = images(42)
performs the same operation in MATLAB.
![]() | Assigning Values to Elements in a Field | Referencing into Nested Structures | ![]() |