Hi everyone. How can i extract the first column(first field) from a structure 1x84 with 3 fields?
조회 수: 25 (최근 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에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!