editorwindow.m

Programmatically launch or activate MATLAB's Editor Window

You are now following this Submission

Akin to MATLAB's |commandwindow| and |commandhistory|, |editorwindow| will programmatically activate the Editor Window.
If the Editor Window is not open, editorwindow will open it, same as 'edit'.
If the Editor Window is open but not active, this function will activate it, placing the cursor in the current document.

editorwindow('myFile') will activate the Editor Window with the specified file, opening it if necessary.

Cite As

Brett Shoelson (2026). editorwindow.m (https://se.mathworks.com/matlabcentral/fileexchange/47956-editorwindow-m), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Environment and Settings in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.1

Updated license

1.0.0.0