它会创建一个围绕着窗帘的网格图。
句法
mesh(X, Y, Z)mesh(Z)mesh(..., C)mesh(..., 'PropertyName', PropertyValue, ...)mesh(axes_handles, ...)meshc(...) meshz(...)h = mesh(...)h = meshc(...)h = meshz(...)hsurface = mesh('v6'...), = meshc('v6'...), = meshz('v6'...)
例子
z=sin^2 x+sin^2 y|x|≤π/2, |y|≤π/2x= linspace(-pi/2, pi/2, 50)y=x;
[x, y]=meshgrid(x, y);
z= sin(x.^2)+sin(y.^2);
meshz(x, y, z), axis tightview (-37 .5, 50)
【MATLAB 3D函数meshz()】输出
文章图片
推荐阅读
- MATLAB 3D函数Waterfall()
- MATLAB函数stairs()
- MATLAB 3D函数surf()
- MATLAB 3D绘图
- MATLAB 3D函数contour3()
- MATLAB 3D函数fill3()
- MATLAB函数plot3()
- MATLAB函数pcolor()
- MATLAB函数quiver()