assign cell arrays to struct
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (1)
ca = {1, 'abc', rand(1,4)}
test.myField = ca
Catégories
En savoir plus sur Structures dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!