matlab:怎么画三维隐函数图像,注意是三维,还是隐函数,求给出公式...答:step = 0.1;[X Y Z] = meshgrid(-3:step:3, -3:step:3, -3:step:3);F=X.^Y+sin(Z).*X+Z.*Y; % 函数表达式 p = patch(isosurface(X,Y,Z,F,0,Z));set(p,'facecolor','none','EdgeColor','interp');view(3)
用matlab如何绘画三维隐函数,如下式f=arctan(2z)+(x^2+y^2)/(z^2+...答:[x,y,z]=meshgrid(-5:5,-5:5,-5:5);v=atan(2*z)+(x.^2+y.^2)./(z.^2+1)+atan(y./(x+eps))+z;p=patch(isosurface(x,y,z,v,0),'facecolor','r','edgecolor','none','facelighting','gouraud');isonormals(x,y,z,v,p);axis tight equal;view(3);camlight;grid ...