Programmatically launch or activate MATLAB's Editor Window


Updated 1 Sep 2016

View License

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 (2023). editorwindow.m (https://www.mathworks.com/matlabcentral/fileexchange/47956-editorwindow-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Environment and Settings in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Updated license