MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics) MATLAB Function Reference (Volume 2: Graphics)

12.07.2015 Views

1 10.2clabelExamplesGenerate, draw, and label a simple contour plot.[x,y] = meshgrid(–2:.2:2);z = x.^exp(–x.^2–y.^2);[C,h] = contour(x,y,z);clabel(C,h);21.510.5010.60.40.8−0.20.20.6−0.2−9.869e−170.40.60.80.2−0.50.8−1−9.869e−170.20.40.60.40.8−1.510.60.8−2−2 −1.5 −1 −0.5 0 0.5 1 1.5 20.2See Alsocontour, contourc, contourf2-78

clfPurpose2clfClear current figure windowSyntaxDescriptionclfclf resetclf deletes from the current figure all graphics objects whose handles are nothidden (i.e., their HandleVisibility property is set to on).clf reset deletes from the current figure all graphics objects regardless of thesetting of their HandleVisibility property and resets all figure properties,except Position, Units, PaperPosition, and PaperUnits to their defaultvalues.RemarksSee AlsoThe clf command behaves the same way when issued on the command line asit does in callback routines – it does not recognize the HandleVisibilitysetting of callback. This means that when issued from within a callbackroutine, clf deletes only those objects whose HandleVisibility property is setto on.cla, clc, hold, reset2-79

clfPurpose2clfClear current figure windowSyntaxDescriptionclfclf resetclf deletes from the current figure all graphics objects whose handles are nothidden (i.e., their HandleVisibility property is set to on).clf reset deletes from the current figure all graphics objects regardless of thesetting of their HandleVisibility property and resets all figure properties,except Position, Units, PaperPosition, and PaperUnits to their defaultvalues.RemarksSee AlsoThe clf command behaves the same way when issued on the command line asit does in callback routines – it does not recognize the HandleVisibilitysetting of callback. This means that when issued from within a callbackroutine, clf deletes only those objects whose HandleVisibility property is setto on.cla, clc, hold, reset2-79

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!