필터 지우기
필터 지우기

Info

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

How do I rearrange these matrix values?

조회 수: 1 (최근 30일)
Julianna
Julianna 2020년 4월 14일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello.
My initial matrix I have is:
and I need to rearange it to look like this:
how would I go about coding this? Thank you.

답변 (2개)

James Tursa
James Tursa 2020년 4월 14일
A = your matrix
result = reshape(A,3,4)'

Jamal Nasir
Jamal Nasir 2020년 4월 14일
%%%% if your initial matrix is a the matrix c is the result
b=a'
c=reshape(b,4,3)

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

Community Treasure Hunt

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

Start Hunting!

Translated by