Do a matrix,array

1 vue (au cours des 30 derniers jours)
Giannakis Stoukas
Giannakis Stoukas le 4 Mai 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?

Réponse acceptée

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

Plus de réponses (0)

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