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
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