How to reshape a matrix?
4 ビュー (過去 30 日間)
古いコメントを表示
Badavath Purnesh Singh
2021 年 11 月 10 日
コメント済み: Walter Roberson
2021 年 11 月 11 日
I have a matrix of size 9*10. I want each row of the matrix get converted into a 2D matrix, like 3*3 and the coloumns which represent the number of observations, which are 10. At the end I want a 3D matrix, comprising 3*3 matrix, which will represent my data points for a particilar observation and the other dimention in coloumns should be of 10, representing the number of obsverations.
0 件のコメント
採用された回答
Walter Roberson
2021 年 11 月 10 日
Array3D = reshape(Array2D, 3, 3, []);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!