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에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!