image thumbnail

closewindow

version 1.1.0.1 (1.48 KB) by Matthew Simoneau
Close any window by name.

3.1K Downloads

Updated 01 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 (2021). 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
Acknowledgements

Inspired by: ShowWindow

Community Treasure Hunt

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

Start Hunting!