matlab plot3 mesh surf三种作图方法有什么区别

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 20:38:17

matlab plot3 mesh surf三种作图方法有什么区别
matlab plot3 mesh surf三种作图方法有什么区别

matlab plot3 mesh surf三种作图方法有什么区别
plot3(x1,y1,z1,x2,y2,z2,…,xn,yn,zn):例:t=0:0.1:1;x=sin(t);y=cos(t);z=t;plot3(x,y,z)
可绘n条线;plot函数也可化多条线
surf(x,y,z)或mesh(x,y,z):绘制三维曲面的网格图或表面图,
surfc()和surfl()分别绘制带有等高线和光照下的三维曲面,
meshc()和meshz()也有不同效果