MATLAB给变量新加一行或者一列

A  = 1:2
B = 4:5
C = [A B]
D = [A;B]

输出


A =

     1     2


B =

     4     5


C =

     1     2     4     5


D =

     1     2
     4     5

你可能感兴趣的:(MATLAB)