Assume I have a structure called I of the size n*1, with a multiple fields one of which is called 'area' for example. When I try the code below:
area = I.area
the resultant area only have the one value that comes from the last position of the structure. Is there any fast way to exact all the values in the field, except using for loop as follows:
for ii = 1:n; area(ii) = I(ii).area; end