How can I make one vector out of two vectors with different lengths?

3 visualizaciones (últimos 30 días)
Simon Peeters
Simon Peeters el 18 de Dic. de 2020
Comentada: Simon Peeters el 18 de Dic. de 2020
Is it possible to make one vector out of two vectors with different lengths?
A = [1 1 1 1]
B = [0 0 1 0 1 0]
--> C = [0 0 1 0 1 0 1 1 1 1]
Thank for your help!

Respuestas (1)

Ive J
Ive J el 18 de Dic. de 2020
A = [1 1 1 1]
B = [0 0 1 0 1 0]
C = [B, A];

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by