可以先将行变成列的形式,再合并>> a=p1'>> b=p2'>>p3=[a b]可得结果:>> p3=[a b]p3 = 1 1 2 2 3 3 4 4 5 5 6 6
>> p1 = [1,2,3,4,5,6];p2 = [1,2,3,4,5,6];p3 = [p1' p2']