the structure has an array as value and there are three elements from this structure. now i want the field 1x1 from element 1 in matlab in matlab

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.m
myStruct(1).myArray(1, 1)
26 chars
2 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