MATLAB: How to keep the window for a script together with the MATLAB Command Window

commanddockeditorlayoutMATLABwindow

When I click on 'New Script' in the MATLAB ToolStrip under the HOME tab, a new window appears for the editor.
However, I would like to keep the window for the script together with the MATLAB Command Window.
How can I do this?

Best Answer

Once the new window appears for the script, on its top-right corner click on the blue downward arrow.
Then, select 'Dock Editor'.