If I have single column vector from 1 to 54 values as given below and I want to divide this column vector into 6 column vector and store it into a matrix how could I do this?? please try to help me out..
1 回表示 (過去 30 日間)
古いコメントを表示
xi=[1;2;3;......;54]
2 件のコメント
Ngonidzashe Nedziwe
2017 年 7 月 9 日
the final answer u want it as a single column vector or u want a multi column vector
採用された回答
Ngonidzashe Nedziwe
2017 年 7 月 9 日
for multicolumn array splitting u can use the reshape command in matlab. xi=[1;2;3;4;...;54]; n=6; split=reshape(xi,n,[]);
その他の回答 (1 件)
John D'Errico
2017 年 7 月 9 日
help reshape
Asking such a basic question implies you probably need to read the getting started tutorials.
参考
カテゴリ
Help Center および 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!