More intuitive subplot
Version 1.2.0.0 (1.44 KB) by
Peter Li
Matlab's subplot is useful for throwing figures together but the indexing is very counter-intuitive.
Simple wrapper for Matlab's subplot. Most arguments get passed straight through. The only difference is in how the thisPlot index is handled. Instead of being a counter-intuitive 1D index, you just use 2D indices. For example, if you want a subregion from rows 3:4 and cols 4:5, just put {3:4 4:5}. If you want a single row/col region, just do {x y} or [x y].
Cite As
Peter Li (2024). More intuitive subplot (https://www.mathworks.com/matlabcentral/fileexchange/33667-more-intuitive-subplot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Combine Multiple Plots > Subplots >
Find more on Subplots in Help Center and MATLAB Answers
Tags
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.