MATLAB: How to extract a specific data value from a field in a from multiple structures, and save into an array

MATLABstruct

I have hundreds of structs named x01T0005, x01T0105, x01T0205 etc. Within each of these structs there is a field named U, from which I want to extract the value in the 81st row and 32nd column and save it into an array. I want to do this for the first 200 of my structs so that I end up with an array of 200 values containing the (81,32) value from each U field.
Thanks

Best Answer

Once you have your structures in a cell array C (easily achieved when importing), then this is trivial:
arr = nan(1,200);
for k = 1:200
arr(k) = C{k}.U(81,32);
end
You certainly avoid a lot of problems when you don't try to access variable names dynamically!