Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How do I rearrange these matrix values?

2 visualizaciones (últimos 30 días)
Julianna
Julianna el 14 de Abr. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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.

Respuestas (2)

James Tursa
James Tursa el 14 de Abr. de 2020
A = your matrix
result = reshape(A,3,4)'

Jamal Nasir
Jamal Nasir el 14 de Abr. de 2020
%%%% 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