How transform matrix to vector

3 vues (au cours des 30 derniers jours)
Meriem Ben Kalia
Meriem Ben Kalia le 22 Août 2020
Commenté : Meriem Ben Kalia le 22 Août 2020
hello everyone,
I have matrix with 6*36 elements I want to transform all the elements in vector with 108*1 (108=6*36)
example A=[1 2 3;8 9 7] will be B=[1;2;3;8;9;7 ]
and thank you very much

Réponse acceptée

KSSV
KSSV le 22 Août 2020
A = [1 2 3 ; 8 9 7] ;
iwant = A(:)
  1 commentaire
Meriem Ben Kalia
Meriem Ben Kalia le 22 Août 2020
thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices 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