Assuming you have a Matlab structure myStruct
with an array as one of the field values and you want to extract the value at index (1, 1) from the array in the first element:
main.m26 chars2 lines
In the above code, myStruct(1)
is used to access the first element of the structure and .myArray(1, 1)
is used to extract the value at the first row and first column of the array field.
gistlibby LogSnag