MATLAB Answers

0

Hi everyone. How can i extract the first column(first field) from a structure 1x84 with 3 fields?

Asked by mina massoud on 30 Jun 2019
Latest activity Commented on by Image Analyst
on 30 Jun 2019
I do like (:,1) but it only gives me a struct 1x1 that contains the first row with the 3 fields but I need only the first field (first column) with all the 84 elements in column.
Thank you

  0 Comments

Sign in to comment.

Products


Release

R2019a

1 Answer

Answer by Image Analyst
on 30 Jun 2019

After you read this link, attach your structure array in a .mat file.
In the meantime, try
output = vertcat(s.fieldYouWant);

  2 Comments

Try this:
s = load('Tailwind_satE08.mat')
DETECTION = s.DETECTION
% Extract into 3 separate variables.
ranges = [DETECTION.Range];
Doppler = [DETECTION.Doppler];
TxPOS = [DETECTION.TxPOS];

Sign in to comment.