how to create a 1x3 cell array to hold multiple individual arrays
17 views (last 30 days)
Show older comments
Charlie Cressell
on 29 Mar 2017
Commented: Charlie Cressell
on 29 Mar 2017
I have to create a 1x3 Cell Array to hold 3 individual arrays a = [1 2 3; 4 5 6; 7 8 9], b = [7 3; 1 4], and c = [1;6;5;3]
0 Comments
Accepted Answer
James Tursa
on 29 Mar 2017
Edited: James Tursa
on 29 Mar 2017
my_cell_array = {a,b,c};
Or if you are simply asking how to pre-allocate the cell array in advance:
my_cell_array = cell(1,3);
More Answers (0)
See Also
Categories
Find more on Resizing and Reshaping Matrices 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!