Clear Filters
Clear Filters

matrix reshaping

4 views (last 30 days)
athpapa -
athpapa - on 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...

Accepted Answer

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

More Answers (2)

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

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

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!