MATLAB: How to label the levels of a fcontour plot
clabelfcontourlevelSymbolic Math Toolbox
How to label the levels of a fcontour plot?fcontour does not work withclabel nor has a option such as 'ShowText','on' in contour.
Best Answer
You must use thecontour function to get the contour labels.
Combiningfcontour andcontour to get the result you want (infigure(2) here) is not difficult. You first need to get the datafcontour creates. You can do that by returning the handle to it, and then accessing its properties.
Using an example from the documentation forfcontour and adapting it to usecontour:
have a look atContour Properties - theLabelSpacing property might help. Also you can specify your own contour levels (see the Contour Levels property group) which might be used to control the labels indirectly.
Best Answer