how to set multiple fields in a struct without using a loop
Mostrar comentarios más antiguos
Hello guys, I have the next problem, I want to make something like this:
A={'A1';'A2';'A3'};
them make B=somefunction(B,A); and obtain this:
B =
A1: []
A2: []
A3: []
Any idea?
4 comentarios
José-Luis
el 6 de Jun. de 2014
I don't understand. What's B?
Lisandro Jimenez
el 6 de Jun. de 2014
José-Luis
el 6 de Jun. de 2014
B is a struct with fields A1, A2 and A3?
Lisandro Jimenez
el 6 de Jun. de 2014
Respuesta aceptada
Más respuestas (1)
Lisandro Jimenez
el 6 de Jun. de 2014
Categorías
Más información sobre Structures en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!