File Exchange

image thumbnail

Subplots Divided into Full Figures

version 1.0.1 (1.84 KB) by Akshay Kumar
This code is to separate subplots into the full plot which you can save.


Updated 02 Apr 2019

View Version History

View License

Please use "help Sub_Fig_Divider" and "help Example_File" to know how to use this code in separating the subplots.

Cite As

Akshay Kumar (2020). Subplots Divided into Full Figures (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)

Louis Garber


Hm, I'm trying to separate 16 histograms. For histograms 1-15 this tool works well (starting the numbering at fig. 3). For histogram 16, there is no figure apprearing though, except messed up as part of figure 2.

Upon closer inspection, the problem is with line 23

"Array indices must be positive integers or logical values." for ii=1, the index becomes zero, and it messes up . Also transforming it to logical zero(false) creates problems further down the road

my version is 2019a

Rachael Sanders

Harsha Nagalla

Very helpful. Thank you


add to last comment: change being that the current version does not work when there are multiple figures open. Fixed that, but can't seem to find a pull request button anywhere.

Aditya Zadgaonkar

MATLAB Release Compatibility
Created with R2018a
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!