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

Create figure in tiled positions

You are now following this Submission

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 (2026). subfigure(nRows,nCols,figureId,varargin) (https://au.mathworks.com/matlabcentral/fileexchange/53225-subfigure-nrows-ncols-figureid-varargin), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: maximize

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

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