matlab高手帮我看看程序错哪里吧

x=-6:0.012:6;
y=-4:0.008:4;
z1=(sin(sqrt(x.^2+y.^2)))./sqrt(x.^2+y.^2);
subplot(2,2,1);
surfc(x,y,z1)
hold;
z2=100*(y-x.^2).^2+(1-x).^2;
subplot(2,2,2);
surfc(x,y,z2)
hold;
z3=arcos(x.^4+sin(y));
subplot(2,2,3);
surfc(x,y,z3)
hold;

x=-6:0.012:6;

y=-4:0.008:4;

[X,Y] = 禅销穗meshgrid(x,y);           

z1=(sin(sqrt(X.^2+Y.^2)))./sqrt(X.^2+Y.^2);

subplot(2,2,1);

surfc(X,Y,z1)

shading  interp

z2=100*(Y-X.^2).^2+(1-X).^2;

subplot(2,2,2);

surfc(X,Y,z2)

shading interp

z3=atan(X.^4+sin(Y));

subplot(2,2,3);

surfc(X,Y,z3)

shading interp

 

 

 

画3D图要用矩阵来运斗培算,用向量不要用surfc

arcos是你自创的吧贺卜?应该是acos

而且acos的范围是-1~1你的熟入范围不对,我给你换成了atan


编译报错信息都不给出来。。