Borrar filtros
Borrar filtros

Reshaping matrix

1 visualización (últimos 30 días)
Muammar
Muammar el 7 de Feb. de 2012
Hi...
I want to ask how to reshape this matrix
A = [ 1 1 1 ; 2 2 2 ; 3 3 3] to be A = [1 1 1 2 2 2 3 3 3]
using index, because I will use around 40 x 40 matrix
Thank you, Muammar

Respuestas (1)

Andrei Bobrov
Andrei Bobrov el 7 de Feb. de 2012
out = reshape(A.',1,[])
please read reshape

Categorías

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