可以看一下reshape命令https://ww2.mathworks.cn/help/matlab/ref/reshape.html?searchHighlight=reshape&s_tid=srchtitle_reshape_1先用reshape将2x2转化为4x1,然后用[a,b]左右拼接起来