image thumbnail

MATLAB Plot Gallery - Mesh Plot

by

 

24 Feb 2012 (Updated )

Create a 3D mesh plot

Mesh_Plot

This is an example of how to create a 3D mesh plot in MATLAB®.

Read about the mesh function in the MATLAB documentation.

For more examples, go to MATLAB Plot Gallery

% Load the error data
load errorData x y errors

% Create a mesh plot using the mesh function
figure
mesh(x, y, errors)

% Set the view angle
view(150, 50)

% Add title and axis labels
title('Error at the Given Data Sites')
xlabel('x')
ylabel('y')
zlabel('Error')

Contact us