Hi everyone. How can i extract the first column(first field) from a structure 1x84 with 3 fields?
10 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Image Analyst
2019-6-30
In the meantime, try
output = vertcat(s.fieldYouWant);
2 个评论
Image Analyst
2019-6-30
Try this:
s = load('Tailwind_satE08.mat')
DETECTION = s.DETECTION
% Extract into 3 separate variables.
ranges = [DETECTION.Range];
Doppler = [DETECTION.Doppler];
TxPOS = [DETECTION.TxPOS];
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!