If you're using more than one instance of MATLAB at a time, it's useful to be able to tell them apart at a glance. This utility lets you rename the MATLAB window so that it can be distinguished from other instances in the task bar, and when tabbing between windows.
Two functions are included:
>> [hWnd,title] = findAllWindows
returns the names and handles of all windows in the MATLAB process.
allows you to set the title of any window in the MATLAB process.
An example script is included, as are help files and full source code.
You will need to build the MEX functions yourself. If you haven't run "mex" before, use:
>> mex -setup
and follow the instructions for selecting a compiler.
>> mex findAllWindows.cpp
>> mex setWindowTitle.cpp
This works with Microsoft Visual Studio 2005, and probably with other versions too. If you encounter linking problems, try adding "user32.lib" to the end of the command.
Malcolm Wood (2021). Changing Window Titles (https://www.mathworks.com/matlabcentral/fileexchange/11046-changing-window-titles), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: sethicon
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!