To access the value of field 1x1 from an array in Matlab, you can use indexing. Here is an example of how to do it:
main.m169 chars9 lines
In the above example, we define a structure myStruct with a field fieldname which has a 3x3 array as its value. We then use indexing to access the value at position 1x1 (i.e., the first row and first column) of the array using myStruct.fieldname(1, 1). Finally, we display the value using disp.
gistlibby LogSnag