Is it possible to save an object to a structure field?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Zeynab Mousavikhamene
el 27 de Abr. de 2020
Editada: Ameer Hamza
el 27 de Abr. de 2020
I am interested to put an object into a structure field like:
struct.field=object;
is it possible?
1 comentario
Respuesta aceptada
Ameer Hamza
el 27 de Abr. de 2020
Editada: Ameer Hamza
el 27 de Abr. de 2020
Definitely possible
>> fig = figure;
>> myStruct.a = fig
myStruct =
struct with fields:
a: [1×1 Figure]
0 comentarios
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!