Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How do I rearrange these matrix values?

1 visualizzazione (ultimi 30 giorni)
Julianna
Julianna il 14 Apr 2020
Chiuso: MATLAB Answer Bot il 20 Ago 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.

Risposte (2)

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

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

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by