image thumbnail

MATLAB Plot Gallery - Display Image (2)

by

 

24 Feb 2012 (Updated )

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.

For more examples, 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