image thumbnail

MATLAB Plot Gallery - Contour Plot

by

 

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.

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