www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SetValuesToDrawContoursAtExample.m

    %% Specify Levels for Contour Lines
% Set the values at which |fcontour| draws contours by using the
% |'LevelList'| option. 

f = @(x,y) sin(x) + cos(y);
fcontour(f,'LevelList',[-1 0 1])