assign cell arrays to struct
Show older comments
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
Accepted Answer
More Answers (1)
ca = {1, 'abc', rand(1,4)}
test.myField = ca
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!