标签: matlab
reshape
感谢。
答案 0 :(得分:3)
如果你需要通过z:
c = reshape(permute(z,[2 1 3]),[],2)
否则,
c = [reshape(a',[],1),reshape(b',[],1)];
答案 1 :(得分:3)
reshape(permute(z,[2 1 3]), 4, 2)