Load elevation raster data and a geographic cells reference object. Display the data using a contour plot on a world map. Then, create a legend in the lower-right corner of the map. Specify the contour elevations as meters.
Contour matrix, specified as a matrix with two rows. The first row
represents longitude data and the second row represents latitude data. You
can create a contour matrix by using contourm, contour3m, or contourfm.
Handle to the contour patches displayed on the current axes, returned as
an hggroup. You can get a
handle to contour patches by using contourm, contour3m, or contourfm.
Location to place legend, specified as one of the following
integers.
Value
Placement
0
Automatic placement (default)
1
Upper right corner
2
Upper left corner
3
Lower left corner
4
Lower right corner
-1
To the right of the plot
Text to append to each entry in the legend, specified as a character
vector or string scalar.
Labels in the legend, specified as a string array or cell array of
character vectors. labels must have the same number of
entries as the line children of h.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.