MATLAB Answers

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Is it possible to merge structs that are not the same size?

조회 수: 2(최근 30일)
JamJan
JamJan 2019년 11월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
Is it possible to merge structs that are not the same size and have different names?
  댓글 수: 1
Walter Roberson
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!

Translated by