Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 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