Do a matrix,array

1 次查看(过去 30 天)
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?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by