closewindow

Close any window by name.

You are now following this Submission

Requires generic DLL calling, https://www.mathworks.com/help/matlab/ref/loadlibrary.html
Only works on Microsoft® Windows®.

CLOSEWINDOW Close a window.
CLOSEWINDOW(NAME) closese the window with a certain NAME.

Example:

>> system('notepad &');

>> closewindow('Untitled - Notepad')

Cite As

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

Acknowledgements

Inspired by: ShowWindow

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Updated license

1.1.0.0

Add trademarks.

1.0.0.0