ShowWindow

Change the state of a window, like minimize and maximize.

You are now following this Submission

SHOWWINDOW(NAME,STATE) changes the state of the window with a certain NAME to the specified STATE. STATE must be one of the following:
'hide', 'shownormal', 'normal', 'showminimized', 'showmaximized',
'maximize', 'shownoactivate', 'show', 'minimize', 'showminnoactive',
'showna', 'restore', 'showdefault', 'forceminimize',
'max'

Examples:

>> showwindow('MATLAB','minimize')
>> showwindow('','minimize')
>> figure(4); showwindow('Figure No. 4','maximize'); text(.5,.5,'Simoneau')

Cite As

Matthew Simoneau (2026). ShowWindow (https://www.mathworks.com/matlabcentral/fileexchange/3407-showwindow), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: closewindow

Categories

Find more on MATLAB Report Generator in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Updated license

1.0.0.0

Fix M-lint warning.