image thumbnail

MATLAB Plot Gallery - Mesh Plot

by

 

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.

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