How do i convert this data

1 view (last 30 days)
Aycan Nehir
Aycan Nehir on 15 Nov 2019
Commented: Aycan Nehir on 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 ?

Accepted Answer

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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!