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

2 次查看(过去 30 天)
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!

回答(1 个)

Ive J
Ive J 2020-12-18
A = [1 1 1 1]
B = [0 0 1 0 1 0]
C = [B, A];

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by