How to split one big matrix into several matrices?
2 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to split a 100000x2048 matrix into 100000 32x32x2 matrices and then put it into convolutional neural network as 100000 data set, could anyone help, please. Thank you.
0 件のコメント
採用された回答
DGM
2021 年 8 月 9 日
Consider:
A = rand(100E3,2048);
C = num2cell(A,2);
C = cellfun(@(x) reshape(x,32,32,2),C,'uniform',false);
3 件のコメント
DGM
2021 年 8 月 11 日
I don't know anything about using a CNN, so I don't know what sort of datatype you need everything stored in. I imagine that getting it into a cell array would at least facilitate conversion to whatever you need though.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Data Workflows についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!