Loops for struct data
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi all,
I have a problem.I want to read all the information of a struct data while I don't know any information about it( for example how much layers in it and the size of each layer). I think it is possible to use while and for loops to read all data in it but I don't know how to arrange the code. Anyone can help me?
Thanks in advance
댓글 수: 0
답변 (1개)
Shwetank Shrey
2019년 6월 24일
You can use fieldnames to get information about the field names in a structure.
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!