Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How do I rearrange these matrix values?

1 vue (au cours des 30 derniers jours)
Julianna
Julianna le 14 Avr 2020
Clôturé : MATLAB Answer Bot le 20 Août 2021
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.

Réponses (2)

James Tursa
James Tursa le 14 Avr 2020
A = your matrix
result = reshape(A,3,4)'

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

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by