Hi everyone. How can i extract the first column(first field) from a structure 1x84 with 3 fields?
Mostrar comentarios más antiguos
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
Respuestas (1)
Image Analyst
el 30 de Jun. de 2019
In the meantime, try
output = vertcat(s.fieldYouWant);
2 comentarios
mina massoud
el 30 de Jun. de 2019
Image Analyst
el 30 de Jun. de 2019
Try this:
s = load('Tailwind_satE08.mat')
DETECTION = s.DETECTION
% Extract into 3 separate variables.
ranges = [DETECTION.Range];
Doppler = [DETECTION.Doppler];
TxPOS = [DETECTION.TxPOS];
Categorías
Más información sobre Workspace Variables and MAT Files en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!