MATLAB: Extract Structure as a Matrix

MATLABstructures

Hi, thanks for your time.
I have a 1D structure array (1×8 struct) which has a field in it which is a 1D vector (1×4 double) that I would like to average.
But, when I try to extract the matricies, they come back "one at a time" instead of as a matrix (see example below)
Is there a really simple way to extract as a matrix?
>> src_telemetry.OBC_plate_temp
ans =
295.0805 295.0250 294.3839 294.2239
ans =
290.2544 290.2015 289.5120 289.4303
ans =
285.0093 284.9753 284.2140 284.2107
ans =
270.4360 270.3716 269.4591 269.6826
ans =
280.1255 280.0913 279.2793 279.3491
ans =
304.4068 304.3511 303.7728 303.4941
ans =
313.9472 313.9159 313.4091 313.0279
ans =
299.5953 299.5354 298.9181 298.7053

Best Answer

mean(vertcat(src_telemetry.OBC_plate_temp),1);
Related Question