Salam i had this problem in 2014.
How to open matlab editor.
Enhance your code and results with formatted text headings images and hyperlinks.
Matlab opens the file matlabroot toolbox matlab strfun num2str m if a file called num2str m exists in a folder that is above toolbox matlab strfun on the matlab path then matlab opens that file instead.
If file does not already exist matlab asks if you want to create it file can include a partial path complete path relative path or no path.
As we mentioned matlab commands are executed either at the command prompt or by running scripts or functions which can be created and edited with the built in editor.
In first click on the little pointer in the upper right of the editor then click the little downward pointing triangle in a circle in the upper right of the window and select undoc then ctll n and enjoy.
Insert equations using the interactive editor or create them using latex.
Commands can be entered here and executed as a script.
When you open the matlab editor debugger without starting matlab the editor debugger is a stand alone or standalone application and is called the matlab stand alone editor.
Save code results and formatted text in a single executable document.
For more information see rehash or toolbox path caching in matlab.
You must have write permission to the path to create file.
To start the matlab stand alone editor double click an m file.
The application name for the stand alone editor is meditor exe.
They are saved with a m extension.
The backup version is useful if you have system problems and lose changes you made to your file.
When you modify a file in the editor the editor saves a copy of the file using the same file name but with an asv extension every 5 minutes.
To launch the editor if it is not already open type edit or edit filename.
If you wish to view the contents of a file outside of matlab in versions later than r2007b please open the file in a generic text editor such as text edit vi emacs or notepad.
Open the file num2str m in the editor.
Edit file opens the specified file in the editor.
The ability to open a file in the editor outside of starting up a full matlab is available in matlab 7 5 r2007b and prior.
If you are trying to consolidate all of the separate m file windows into one window with separate tabs in it this is your answer.