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:
image =
images(2).field("image")
;
image =
images(2).image
performs the same operation in MATLAB.
![]() | Overview | Accessing the Contents of a Structure Field | ![]() |