필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

getting it in a matrix?

조회 수: 1 (최근 30일)
ck
ck 2016년 5월 4일
마감: MATLAB Answer Bot 2021년 8월 20일
Say I have 1000 values in a single column, how can I transform them into matrix in which I get first 20 values in first row and next 20 in the next row and so on in 1 column. Like basically 1 column and 50 rows?

답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 5월 4일
편집: Azzi Abdelmalek 2016년 5월 4일
reshape(A,20,[])'
  댓글 수: 1
ck
ck 2016년 5월 5일
row 1: 1 row 2: 199 row 3: 1 row 4: 199 ....... this is how the output I got is, how can I make it row 1: 1 199 row : 1 199??

CS Researcher
CS Researcher 2016년 5월 5일
Let x be the column vector. Try this:
modifiedX = reshape(x,numel(x)/20,20)';

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by