Do a matrix,array

1 view (last 30 days)
Giannakis Stoukas
Giannakis Stoukas on 4 May 2015
Answered: Star Strider on 4 May 2015
I have a matrix A=[5 4 3; 1 8 2; 6 9 7] and i want to insert it into one array B=[5 4 3 1 8 2 6 9 7].How i will do it?

Accepted Answer

Star Strider
Star Strider on 4 May 2015
This works:
B = reshape(A', 1, []);

More Answers (0)

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!