Borrar filtros
Borrar filtros

matrix reshaping

4 visualizaciones (últimos 30 días)
athpapa -
athpapa - el 17 de Nov. de 2011
Does someone know how to reshape an array for example: A=[1 5; 2 4; 5 6] to an array B=(1,6) to be like this: B=[1 5 2 4 5 6];
Thank you...

Respuesta aceptada

bym
bym el 17 de Nov. de 2011
reshape(A',1,[])

Más respuestas (2)

Honglei Chen
Honglei Chen el 17 de Nov. de 2011
You can try
B = A.';
B = B(:).';

athpapa -
athpapa - el 17 de Nov. de 2011
thank you very much!

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by