How to concatenate multidimensional struct arrays
古いコメントを表示
Hi All, I have:
A = 1 * x array with k properties (i.e., fieldnames)
B = 1 * y array with (correspondingly same) k properties
How can I concatenate A and B to give C, such that C = 1 * (x+y) array with (correspondingly same) k properties.
Thank you in advance.
4 件のコメント
Matt J
2017 年 5 月 11 日
The title to your post talks about cell arrays, but your question appears to talk about struct arrays.
Sherif
2017 年 5 月 15 日
Guillaume
2017 年 5 月 15 日
Well, this is even more confusing. From the error message you mention and from your comment above, it would appear that A and B are instances of classes which is yet another data type completely different from structures or cell arrays.
If that is the case, we need to see the definition of the classes (at the very least the property bit and the class hierarchy).
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Structures についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!