Save matrices (present within a cell) into a single matrix
1 回表示 (過去 30 日間)
古いコメントを表示
Hi. I would like to save matrices (present within a cell) into one single matrix. How can I do this?
Here is an example of a cell:
C = {rand(1225,3), rand(844,3), rand(1004,3), rand(252,3), rand(779,3)};
I would like to get the result below ("matrix") but without manually creating all the matrices (C1, C2, C3, C4, C5) present inside the cell.
C = {rand(1225,3), rand(844,3), rand(1004,3), rand(252,3), rand(779,3)};
C1 = C{1,1};
C2 = C{1,2};
C3 = C{1,3};
C4 = C{1,4};
C5 = C{1,5};
matrix = [C1; C2; C3; C4; C5];
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!