How can I put a 3x1 matrix and a 4x1 matrix "on top" of each other to create a 7x1 matrix?
Show older comments
I have:
M1=[3;4;1]
M2=[9;1;7;1]
I want to make:
M3=[3;4;1;9;1;7;1]
Please help I'm pretty stuck..
Answers (1)
Sean de Wolski
on 27 Feb 2013
M3 = [M1;M2]
or
M3 = vertcat(M1,M2)
I recommend reading the getting started guide to get you over these obstacles.
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!