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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Sayed Afreen
am 9 Jul. 2017
Kommentiert: Sayed Afreen
am 9 Jul. 2017
xi=[1;2;3;......;54]
2 Kommentare
Ngonidzashe Nedziwe
am 9 Jul. 2017
the final answer u want it as a single column vector or u want a multi column vector
Akzeptierte Antwort
Ngonidzashe Nedziwe
am 9 Jul. 2017
for multicolumn array splitting u can use the reshape command in matlab. xi=[1;2;3;4;...;54]; n=6; split=reshape(xi,n,[]);
Weitere Antworten (1)
John D'Errico
am 9 Jul. 2017
help reshape
Asking such a basic question implies you probably need to read the getting started tutorials.
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!