How to use reshape
古いコメントを表示
Hi, I have a matrix m (x, y, z) with a size of 12x6x5. I would like to reshape the matrix having other z-values given in f (5x1 vector). I have written the reshape command like this: g=reshape(f, [m],3) This is the error message: Error using reshape. Size arguments must be integer scalars. I don't understand the error. Thanks for your help!
4 件のコメント
Adam
2017 年 9 月 19 日
I don't understand what you are trying to do. Reshape simply changes the shape of one matrix as shown in
doc reshape
What you are wanting to do seems more complicated. Can you give an example of what you are trying to do and what result you are expecting from what inputs.
Azzi Abdelmalek
2017 年 9 月 19 日
What is [m] ?
Star Strider
2017 年 9 月 19 日
It appears that ‘m’ is the (12x6x5) original matrix.
We need to know the desired result.
anne d.
2017 年 9 月 19 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および 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!