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

2 Ansichten (letzte 30 Tage)
Simon Peeters
Simon Peeters am 18 Dez. 2020
Kommentiert: Simon Peeters am 18 Dez. 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!

Antworten (1)

Ive J
Ive J am 18 Dez. 2020
A = [1 1 1 1]
B = [0 0 1 0 1 0]
C = [B, A];

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by