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]

采纳的回答

Ngonidzashe Nedziwe
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
John D'Errico 2017-7-9
help reshape
Asking such a basic question implies you probably need to read the getting started tutorials.

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by