closewindow

Close any window by name.
3.1K Downloads
Updated 1 Sep 2016

View License

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 (2024). closewindow (https://www.mathworks.com/matlabcentral/fileexchange/3588-closewindow), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Search Path in Help Center and MATLAB Answers
Acknowledgements

Inspired by: ShowWindow

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.1

Updated license

1.1.0.0

Add trademarks.

1.0.0.0