Arrange figures automatically
% arrangeFigures automatically aranges open figures in a grid on the
% designated screen monitor. Options are:
%
% arrangefigures
% arrangefigures(monitor)
% arrangefigures(ontop)
% arrangefigures(monitor, fRatio)
% arrangefigures(monitor, [w h])
% arrangefigures(monitor, fRatio, animate)
%
%
% Possible settings are:
%
% monitor:
% - default: 1
% - 0 means all monitors
% - scalar input means specified monitor
% - array input means multiple chosen monitors. Monitors must be successive
% ontop:
% - if there is only one input argument and the input argument is of type
% logical and is set to true, then all active figures are placed on top.
% Everything else is left unchanged.
% fRatio:
% - default: 3/4
% - set the figure ratio in height/width (default: 3/4)
% [h w]:
% - default: -> default is fRatio
% - set a fixed width (w) and height (h) in pixels
% animate:
% - default: false
% - boolean flag, added for fun, don't expect too much... Can also be of
% practical use when all figures needs to be place on top.
%
% (c) M. van Dijk
Cite As
Marc (2026). Arrange figures automatically (https://www.mathworks.com/matlabcentral/fileexchange/46861-arrange-figures-automatically), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
