How can I put a 3x1 matrix and a 4x1 matrix "on top" of each other to create a 7x1 matrix?
Mostrar comentarios más antiguos
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..
Respuestas (1)
Sean de Wolski
el 27 de Feb. de 2013
M3 = [M1;M2]
or
M3 = vertcat(M1,M2)
I recommend reading the getting started guide to get you over these obstacles.
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!