subfigure(nRows,nCo​ls,figureId,varargi​n)

Version 1.0.0.0 (1.83 KB) by Nikolay
Create figure in tiled positions
315 Downloads
Updated 18 Nov 2015

View License

SUBFIGURE Create figure in tiled positions.
1) subfigure(m,n,p) move gcf to the position specified by m,n,p in a same
manner as subplot(m,n,p) does, p is a scalar or vector.
2) subfigure(m,n,p,figure) create a new figure at the specified position.
3) subfigure(m,n,p,f) when f is a figure will move f to the specified position.
4) subfigure(...,P1,V1,P2,V2...) sets the specified property-value pairs on the figure.
OUT: hFig - Handle of figure.
!! NOTE1: 'maximize' function is required!
http://mathworks.com/matlabcentral/fileexchange/25471-maximize
NOTE2: you may add extra line to 'maximize' function:
warning('off','MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame');
in order to get rid of warning message.
Enjoy!

Cite As

Nikolay (2024). subfigure(nRows,nCols,figureId,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/53225-subfigure-nrows-ncols-figureid-varargin), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Acknowledgements

Inspired by: maximize

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

'fullscreensize' variable moved to 'persistent' workspace instead of 'global'.
cover picture
now works properly also with OS X