assign cell arrays to struct
Mostrar comentarios más antiguos
Dear all,
is it somehow possible to assign cell arrays to the "field" and "value" variables within a struct, like test=struct(field,value) where "field" and "value" are cell arrays ?
Thanks
Respuesta aceptada
Más respuestas (1)
ca = {1, 'abc', rand(1,4)}
test.myField = ca
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!