How to concatenate multidimensional struct arrays
Ältere Kommentare anzeigen
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 Kommentare
Matt J
am 11 Mai 2017
The title to your post talks about cell arrays, but your question appears to talk about struct arrays.
Sherif
am 15 Mai 2017
Guillaume
am 15 Mai 2017
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).
Akzeptierte Antwort
Weitere Antworten (1)
Kategorien
Mehr zu Structures finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!