How to invert parts of a matrix

1 visualización (últimos 30 días)
Filippos Papasavvas
Filippos Papasavvas el 18 de Jul. de 2018
Respondida: jonas el 18 de Jul. de 2018
Hi!
I have column vector A = [1 2 3 4 5 6 7 8 9]'. From A, I want to get to B = [1 2 3; 4 5 6; 7 8 9] by inverting the relevant subvectors of A. How can I do that?
Filippos

Respuesta aceptada

jonas
jonas el 18 de Jul. de 2018
out=reshape(A,3,3)'

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by