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