using mat2cell
4 ビュー (過去 30 日間)
古いコメントを表示
M is matrix of 2010x1300
how do i form 201 cells of 10x1300 using mat2cell?
0 件のコメント
採用された回答
Star Strider
2017 年 10 月 31 日
This works:
M = randn(2010, 1300);
C = mat2cell(M, 201*ones(1,10), 1300);
See the documentation for an explanation.
4 件のコメント
Star Strider
2017 年 10 月 31 日
My pleasure!
Since my Answer solves the problem you originally posted, please Accept it!
その他の回答 (1 件)
M
2017 年 10 月 31 日
Maybe not the easiest solution, but try something like :
j=1;
for i=1:10:201
A{j}=M(i:i+9,:);
j=j+1;
end
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!