Pick a specific level in the contour plot on matlab

痴心易碎 提交于 2019-12-02 10:54:07

contour(Z,N) and contour(X,Y,Z,N) draw N contour lines, choosing the levels automatically. This is not what you want!

contour(Z,V) and contour(X,Y,Z,V) draw a contour line for each level specified in vector V. Use contour(Z,[v v]) or contour(X,Y,Z,[v v]) to draw contours for the single level v.

Suggesting the levels of the 3rd and 4th line are 7 and 8 you have to write contour(X,Y,Z,[7 7]) to only plot the 3rd line or contour(X,Y,Z,[7 8]) to plot the 3rd and the 4th line.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!