필터 지우기
필터 지우기

How to change array to be a special matrix ..??

조회 수: 1 (최근 30일)
Noru
Noru 2013년 1월 29일
Let's try with me to solve this problem.
How to change array like example below
Ar2Mat = [ 2 0.5 6 7.3 15 5.6 4 3.3 12 8.2 ]
into
Ar2Mat = [ 2 0.5
6 7.3
15 5.6
4 3.3
12 8.2]
i've already tried and just make the matrix like this
Ar2Mat = [ 2 5.6
0.5 4
6 3.3
7.3 12
15 8.2]
Does anyone has the solution..?
thanks

채택된 답변

José-Luis
José-Luis 2013년 1월 29일
편집: José-Luis 2013년 1월 29일
Ar2Mat = [ 2 0.5 6 7.3 15 5.6 4 3.3 12 8.2 ];
Ar2Mat = reshape(Ar2Mat,2,5)'
Are you taking the same course as Vishnu?
  댓글 수: 1
Noru
Noru 2013년 1월 30일
No, I don't taking the same course as Vishnu And thanks for your answer.. :)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by