MATLAB Examples

This is an example of how to create a contour plot in MATLAB®.

Read about the contour function in the MATLAB documentation.

For more examples, go to MATLAB Plot Gallery

% Load position and elevation data for Mount Bruno
load mtBruno Longitude Latitude Elevation

% Create a contour plot with 8 contour levels
contour(Longitude, Latitude, Elevation, 8)

% Add title and exis labels
title('Mount Bruno Elevation')