how to asign 2 dimesion array to 3 dimension array if it is not possible then how can i assign each 2 dimension array to 3 dimension array in for loop
1 view (last 30 days)
Show older comments
how to asign 2 dimesion array to 3 dimension array if it is not possible then how can i assign each 2 dimension array to 3 dimension array in for loop
0 Comments
Accepted Answer
Jan
on 20 May 2012
One element of an array can contain one element only. This is the definition of "element".
Perhaps you are looking for a cell:
A{1} = [1 3 5];
A{2} = [5 8 11];
B{1} = [1, 3, 5; 5, 8, 11];
These basics are explained exhaustively in the "Getting Started" chapters of the documentation.
More Answers (1)
See Also
Categories
Find more on Creating and Concatenating 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!