필터 지우기
필터 지우기

arrange an array(1xn) to (rxc)

조회 수: 1 (최근 30일)
Ugur Sahin
Ugur Sahin 2020년 4월 7일
댓글: Ugur Sahin 2020년 4월 7일
Hi guys,
I have a program this program sums 4 value and this program add sums of 4 value to a new set
This set exist 81 colons
My quastion is how can ı separete to create a matrice every 9 step so there are 9colons and 9rows in new matrice
Thanks.
  댓글 수: 2
James Tursa
James Tursa 2020년 4월 7일
Please provide a short example with smaller sizes so we know exactly what it is you are asking.
Ugur Sahin
Ugur Sahin 2020년 4월 7일
m=1x81 to A=9x9

댓글을 달려면 로그인하십시오.

채택된 답변

James Tursa
James Tursa 2020년 4월 7일
편집: James Tursa 2020년 4월 7일
Not sure how you want the output ordered. Maybe this
A = reshape(m,9,9);
or this
A = reshape(m,9,9).';
  댓글 수: 1
Ugur Sahin
Ugur Sahin 2020년 4월 7일
Yes it is thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by