assign cell arrays to struct
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
ca = {1, 'abc', rand(1,4)}
test.myField = ca
Kategorien
Mehr zu Structures finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!