How to concatenate multidimensional struct arrays
Mostrar comentarios más antiguos
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 comentarios
Matt J
el 11 de Mayo de 2017
The title to your post talks about cell arrays, but your question appears to talk about struct arrays.
Sherif
el 15 de Mayo de 2017
Guillaume
el 15 de Mayo de 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).
Respuesta aceptada
Más respuestas (1)
Categorías
Más información sobre Construct and Work with Object Arrays en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!