Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Is it possible to merge structs that are not the same size?
조회 수: 1 (최근 30일)
이전 댓글 표시
Is it possible to merge structs that are not the same size and have different names?
댓글 수: 1
Walter Roberson
2019년 11월 7일
... Yes, if you define what should happen in each case. One of the questions is what to do if the field names are the same.
There is no structure merge function provided by Mathworks.
Sometimes it is easiest to use struct2cell and manipulate and cell2struct back.
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!