converting vector to matrix
1 回表示 (過去 30 日間)
古いコメントを表示
Hello!
I want to convert vector:
V = [1 2 3 4 5 6 7 8 9]
To
V1 = [ 1 2 3; 4 5 6; 7 8 9 ]
Is there a Matlab command that will let me do this? or this needs to be coded? pleas help me Thanks in advence
0 件のコメント
回答 (1 件)
Tom
2012 年 6 月 27 日
doc reshape
in this case:
V1=reshape(V,3,3)
3 件のコメント
Sean de Wolski
2012 年 6 月 27 日
@Tom, MATLAB Answers law 1:
-If you post something on MATLAB Answers without checking it, it will contain a typo!
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!