Collection many vectors in one matrix

3 views (last 30 days)
hi everybody how can I collect many vectors in one matrix EX:
I1 = [ 2 3 4 5 2 ]
I2 = [ 6 5 4 3 2]
I3 = [ 9 8 7 6 5 ]
The answer waht i want
G = [ 2 3 4 5 2;6 5 4 3 2; 9 8 7 6 5 ].
Thank you

Accepted Answer

Andrew Newell
Andrew Newell on 22 Apr 2017
The answer is
G = [I1; I2; I3];

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!