take three matrices into a single matrix

 Respuesta aceptada

jonas
jonas el 31 de Jul. de 2018
Editada: jonas el 31 de Jul. de 2018
A=[a1;a2;a3]
a1 through a3 are single line vectors

Más respuestas (1)

Alex Fratila
Alex Fratila el 31 de Jul. de 2018
Let's say your matrices are named a, b, and c. Then, you can concatenate them like this:
newMatrix = [a ; b ; c];
The semicolon stacks your matrices on top of each other (vertical concatenation). Here is a page with more info!

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 31 de Jul. de 2018

Editada:

el 31 de Jul. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by