フィルターのクリア

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