matrix reshaping

1 vue (au cours des 30 derniers jours)
athpapa -
athpapa - le 17 Nov 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...

Réponse acceptée

bym
bym le 17 Nov 2011
reshape(A',1,[])

Plus de réponses (2)

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

athpapa -
athpapa - le 17 Nov 2011
thank you very much!

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by