How do i convert this data

8 visualizzazioni (ultimi 30 giorni)
Aycan Nehir
Aycan Nehir il 15 Nov 2019
Commentato: Aycan Nehir il 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 ?

Risposta accettata

Walter Roberson
Walter Roberson il 15 Nov 2019
reshape(A.',1,[])

Più risposte (0)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by