Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Bringing plots into a single figure

Asked by Ede gerlderlands on 27 Jul 2013

Hi All;

I have 6 matlab plots which I myself didn't plot. Can I bring this separate plots into one plot of 3x2 subplots.

Any help is highly appreciated.

1 Comment


priyanka (view profile)

on 28 Jul 2013

yes u can b done as follows. plot(ur variable to b plotted) subplot(3,2,1); imshow(variable); similarly u can do it for all d plots by giving subplot(3,2,2); subplot(3,2,3); subplot(3,2,4); subplot(3,2,5) subplot(3,2,6);

try this


No products are associated with this question.

3 Answers

Answer by Image Analyst

Image Analyst (view profile)

on 28 Jul 2013
Accepted answer

Read in all of your image files with imread(). Then use subplot() and image() or imshow() to display.

title('Image #1', 'FontSize', 24);
title('Image #2', 'FontSize', 24);
title('Image #6', 'FontSize', 24);
% Enlarge figure to full screen.
set(gcf, 'units','normalized','outerposition',[0 0 1 1]);


Image Analyst

Image Analyst (view profile)

Answer by Jan Simon

Jan Simon (view profile)

on 27 Jul 2013

It depends on what "I have plots" exactly mean. Are they printed on paper, saved as image files or as FIG files? Are they contained in an open figure created by another Matlab program?

1 Comment

Ede gerlderlands on 27 Jul 2013

Thank you. I have them as image file and ofcourse matlab figure.

Jan Simon

Jan Simon (view profile)

Answer by per isakson

per isakson (view profile)

on 28 Jul 2013
Edited by per isakson

per isakson (view profile)

on 29 Jul 2013

Many contribution to in the File Exchange address your problem:

  • there are dozens of replacements for subplot, however, I failed to find a good search string.
  • MontageFigures Creates Montage (subplots) of Specified Figures and their subplots.
  • Import Fig File to Axes
  • figs2subplots Combine axes in many figures into subplots in one figure.
  • PlotManager The PlotManager is designed for anyone who is regularly producing various plots that should be in subplots during development/experimenting for good overview and later be exported as single figures (e.g. in high quality).

Warning: This is the result of a quick search and some copy&paste.


per isakson

per isakson (view profile)

Contact us