how can i put multiple matrices into a struct?
13 views (last 30 days)
Show older comments
Can add multiple matrices into one struct?
0 Comments
Accepted Answer
David Hill
on 2 Nov 2019
A and B are maxtrixes of any size.
m=struct('matrix',{A,B});
struct field is 'matrix', so m(1).matrix == A and m(2).matrix == B.
More Answers (0)
See Also
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!