How to change the window title of Matlab?

Hi,
My OS is Ubuntu. When I open a script or function with Matlab, the name of the opened window is the path of my file., like /home/louis/Documents/my_very_very_way_too_long_name/my_script.m.
Is there any command to change the name of the window to just get the name of my file: my_script.m?
Thanks in advance.

 Accepted Answer

You can follow the link below to understand and implement it at your end.
This uses mex commands so make sure you have the necessary setup.

More Answers (0)

Categories

Products

Release

R2022b

Community Treasure Hunt

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

Start Hunting!