gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-03/Ex0327.m

    %例3-27 数组尺寸调整
A=rand(3,4)
reshape(A,2,6)
reshape(A,6,2)
reshape(A,8,2)	%a*b不等于m*n时会报错