<STRONG><BR><BR></STRONG>运行程序老是出错,各位大侠,请教该如何解决呀?谢谢!<BR>??? Error using ==> rdivide<BR>Matrix dimensions must agree.<BR><BR>>> %求解一元二次方程:aa*nf^2+bb*nf+cc=0,(其中系数aa、bb、cc为关于变量u1和u3的函数,u1和u3的变化范围均为(0,1))<BR>g=1.63333;<BR>uu=0.947-0.297*x;<BR>fx=35.3*g*y./uu;fy=(61.4-29.7*y).*g/uu;<BR>uu2=0.462-0.13*x;<BR>k1=0.13*x./uu2;k2=(14.1834*g-0.9656*g*y)./(uu.*uu2);<BR>aa=(1+x.^2).*k1.^2-1-x.^2;<BR>bb=2*k1.*(k2+k2.*x.^2-x.*fx-fy);<BR>cc=(fx+x.*k2).*(fx+x.*k2)+(fy-k2).*(fy-k2);<BR>vv=-bb+sqrt(bb.^2-4*aa.*cc);dd=2*aa;<BR>x=0:0.1:1;y=0:0.1:1;<BR>[x,y]=meshgrid(x,y);<BR>nf=vv./dd;<BR>%plot3(x,y,nf)<BR>mesh(x,y,nf)<BR>%surf(x,y,nf)