This code gets different single fig files and plot all of them together inside a new figure.


Updated 26 Mar 2020

View License

This code is used once there are several saved fig files and the goal is to open all of them together in a new figure as different subplots. The order of subplots is based on the order in which figures are opened. It should be noted that all selected fig files must be single figures (no subplots) and defined in the 2-D space
The video (Help_Video.mp4) showing how to use the code is included in the file.

Cite As

Farhad Sedaghati (2023). SubPlot (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

The objective is to include the multiselect option, and get the legend, x and y limit, scale, tick, and ticklabels

Reported bug has been fixed.

Getting X and Y labels and titles of figures for subplots

The number of rows for subplots