assign cell arrays to struct
古いコメントを表示
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
採用された回答
その他の回答 (1 件)
ca = {1, 'abc', rand(1,4)}
test.myField = ca
カテゴリ
ヘルプ センター および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!