View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Split/Merge Matlab figures.

4.2 | 8 ratings Rate this file 12 Downloads (last 30 days) File Size: 4.07 KB File ID: #31737 Version: 1.0

Split/Merge Matlab figures.


T. R. (view profile)


Split/Merge Matlab figures.

| Watch this File

File Information

Split/Merge Matlab figure using a reference to the figures.
It can be given as a list of paths to one or more *.fig file, or as a list of opened figure handles.

Splitting figure takes a copy of each axes from a figure (or a list of figures) into new ones (one axes per figure).
Merging figures takes a copy of each axes into several axes, all in a new figure.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
03 Mar 2016 Paul Bruner

29 May 2014 Julia

Julia (view profile)

27 May 2013 Jcq

Jcq (view profile)

Works great.

That said, though, I don't really understand some of the inputs. ¿ SubsLoc? ¿ Is the "true" in examples related to the order?

Great to merge several figures in one. I used it to clone an existing figure , paste it into a subplot, and force diferent azimuth/elevation cameras.

02 Nov 2012 Matthijs

Very useful. The only problem I had is that it messes up the figure if the original axes units were not normalized. This can be fixed by inserting



set(C, 'Position', NewPos);

21 Jun 2012 Addison Rich

Also exactly what I was looking for. If you want it display the legend as well, just insert this at line 162 (assuming your previous figures had a legend):


01 Jun 2012 Jesús Lucio

Perfect. Exactly what it says. It will leave me from some headaches...

Comment only
01 Jun 2012 Jesús Lucio

24 May 2012 Durga Lal Shrestha

Does not return handles of subplot in SubHdl as these are deleted in line 160.
Handles should be of new object created as:

SubHdl(k) = copyobj(OldGca, FigHdl);
set(SubHdl(k), 'Position', NewPos);

Also it does not produce legends, otherwise it is useful.

Comment only
08 Apr 2012 sdfsdfsdf

27 Feb 2012 Alexander

Exactly, what I was looking for. The function compensates for essential but missing functionality in Matlab.

Contact us