[求助]关于mesh(x,y,z)画图问题!
[x,y]=meshgrid(1:10);
syms xx;
z=exp(x+y).*xx;
func = int(z,xx,0,1)
mesh(x,y,func);
运行后出现错误:
??? Error using ==> surface
X, Y, Z, and C cannot be complex.
Error in ==> E:\software\toolbox\matlab\graph3d\mesh.m
On line 93 ==> hh = surface(x,y,z,'FaceColor',fc,'EdgeColor','flat', 'FaceLighting', 'none', 'EdgeLighting', 'flat');
如果改成下面结果是正确的:
[x,y]=meshgrid(1:10);
z=exp(x+y);
mesh(x,y,func);
据我初步猜测,是因为int出来的func值为不知道怎么回事请指教??谢谢!!