image thumbnail

MATLAB Plot Gallery - Contour Plot

by

 

24 Feb 2012 (Updated )

Create a contour plot

Contour_Plot

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
figure
contour(Longitude, Latitude, Elevation, 8)

% Add title and exis labels
title('Mount Bruno Elevation')
xlabel('Longitude')
ylabel('Latitude')

Contact us