image thumbnail

MATLAB Plot Gallery - Display Image (2)

by

 

Create an image display

Display_Image_2

This is an example of how to display a simple image in MATLAB®.

Read about the image function in the MATLAB® documentation.

Go to MATLAB Plot Gallery

% Load the data for the mandrill image
load mandrill X map;

% Create the image display using the image command
figure;
image(X);

% Use the colormap specified in the image data file
colormap(map);

% Turn the axes off
axis off;

% Add title
title('Mandrill');

Contact us