Filter löschen
Filter löschen

How transform matrix to vector

1 Ansicht (letzte 30 Tage)
Meriem Ben Kalia
Meriem Ben Kalia am 22 Aug. 2020
Kommentiert: Meriem Ben Kalia am 22 Aug. 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

Akzeptierte Antwort

KSSV
KSSV am 22 Aug. 2020
A = [1 2 3 ; 8 9 7] ;
iwant = A(:)

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by