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 .
MATLAB Release Compatibility
Created with
R13
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Search Path in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: ShowWindow
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
