How to add variable fields in struct?
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Eduard Mazur
el 30 de Abr. de 2021
Comentada: Stephen23
el 30 de Abr. de 2021
Hello all,
So i have a struct like this:
structExampe.(field(n))=struct('a', a, 'b', b);
and I want to add field in the same struct:
structExampe.(field(n))=struct('c', c);
and have all 3 variable inside struct (a,b,c)
How I should do this??
Thanks for the help!
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Structures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!