how to create a single column matrix from two matrices in MATLAB

1 次查看(过去 30 天)
Hi all,
I have tow matrcies A=[1,2,3,4] and B= [7,4,6]. I want to combine it in a single column matrix.
Can anyone help me in this regrad?
thanks in advance

回答(1 个)

Srinidhi
Srinidhi 2021-3-27
A=[1,2,3,4];
B= [7,4,6];
C = cat(2,A,B) % or cat(2,B,A)
C = C'
  4 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

产品


版本

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by