Updated 26 Mar 2020
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.
Farhad Sedaghati (2023). SubPlot (https://www.mathworks.com/matlabcentral/fileexchange/51236-subplot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Combine Multiple Plots > Subplots >
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
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