Creating Vector from the following matrix

1 vue (au cours des 30 derniers jours)
Onovo
Onovo le 18 Juin 2021
Commenté : Onovo le 18 Juin 2021
Please Given the following matrix A=[1 2 3; 4 5 6; 7 8 9], I would like to create a column vector B from A, such that B=[1;2;3;4;5;6;7;8;9]. I need this formular to compute large matrix data into a column vector. Thank you.

Réponse acceptée

SALAH ALRABEEI
SALAH ALRABEEI le 18 Juin 2021
B = reshape(A',1,[]);
  1 commentaire
Onovo
Onovo le 18 Juin 2021
Thank you very much salah

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by