clabel(C)
clabel(C,V)
clabel(C,'manual')
clabel(C)
adds height labels to the current contour plot using the contour structure C
output from contour
. The label positions are selected randomly.
clabel(C,V)
labels just those contour levels given in vector V
. The default action is to label all known contours.
clabel(C,'manual')
places contour labels at the locations selected with a mouse. Press the Return key to terminate labeling. Use the space bar to enter contours.
[x,y] = meshgrid(-2:.2:2);
z = x.^exp(-x.^2-y.^2);
c = contour(x,y,z);
clabel(c);
contour
,contourc
(c) Copyright 1994 by The MathWorks, Inc.