Accessing data within a structure
이전 댓글 표시
I have this structure:
veh(x).meas(y).data.fileName
So i have a certain number x of vehicles (veh) and a certain number y of measurements (meas).
how can i get the fileName for every measurement as a list? (efficient)
Would like ot avoid a construct of numerous "numel" and "for" commands.
thanks!
채택된 답변
추가 답변 (1개)
I have just had the same kind of question. I think you can try a nested table, struct for your data. With table, it is simpler to query for data without using "for" or "numel"
댓글 수: 1
Christian Tieber
2019년 7월 16일
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!