Reshaping a matrix using a loop or any function inbuilt.
古いコメントを表示
Hello, Does anyone know how to reshape a m*n matrix into m*1*n matrix using loops or any other function. I would definitely appriciate if both the methods are illustrated.
採用された回答
その他の回答 (1 件)
Wouter
2013 年 3 月 21 日
0 投票
a suggestion: permute(matrix,[1 3 2])
this switches dimension 2 and 3 and effectively changes the size of your matrix
1 件のコメント
Jan
2013 年 3 月 21 日
This uses the clearly documented but confusing fact, that in Matlab missing trailing dimensions are assume to be 1 by default.
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!