Borrar filtros
Borrar filtros

matrix row and cloumn exchange

1 visualización (últimos 30 días)
Alina
Alina el 7 de Mzo. de 2014
Editada: Mischa Kim el 7 de Mzo. de 2014
a=[14 13 9 10
6 5 1 2]
i m trying to convert it into
b=[ 14 13
9 10
6 5
1 2]

Respuesta aceptada

Mischa Kim
Mischa Kim el 7 de Mzo. de 2014
Editada: Mischa Kim el 7 de Mzo. de 2014
Alina, use
b = reshape(a',2,4)'

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays 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