How do i convert this data

9 Ansichten (letzte 30 Tage)
Aycan Nehir
Aycan Nehir am 15 Nov. 2019
Kommentiert: Aycan Nehir am 15 Nov. 2019
I have a data as like A=[1 2 3;4 5 6;7 8 9] How can i convert it to B=[1 2 3 4 5 6 7 8 9]
A=1 2 3
4 5 6
7 8 9
B=horzcat(A(1,:),A(2,:),A(3,:)) i made this. its ok but my original data has too large dimension. i cant write as like this one by one.
Is there anybody help about that ?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 15 Nov. 2019
reshape(A.',1,[])
  1 Kommentar
Aycan Nehir
Aycan Nehir am 15 Nov. 2019
That's what i want. Thank you

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by