add editor to te command window in matlab
Show older comments
hi,
then I run a script, the editor opens in a separate file, but I would prefer to see the editor with the script above the command window, how can I do that?
14 Comments
tayyebe sh
on 16 Jul 2015
salam , i had this problem in 2014. 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 :)
Oluwaseyi Vincent
on 22 Sep 2016
Hi,
In the menu bar for MATLAB, click on 'layout'. You get different options. It sounds like the 'default' option here is what you need. Hope this helps.
Walter Roberson
on 4 Oct 2016
Deepak Kuman comments to Oluwaseyi Vincent,
thanks yar
Walter Roberson
on 11 May 2017
Swapnil Shubham comments to Oluwaseyi Vincent,
It helped
Sudhish Subramaniam
on 15 Feb 2019
Edited: per isakson
on 27 Sep 2019
thank you so much
Thierry Ntwari
on 22 Mar 2019
Thanks buddy!
Brandon Carson
on 23 Aug 2019
Edited: Brandon Carson
on 23 Aug 2019
6 years later, still helpful
Kartik Agrawal
on 11 Nov 2019
thanks dude
KUNTAL PATEL
on 7 Mar 2020
Man this is so perfect. Thanks dude!!!!!
Burhan Ozdemir
on 1 Apr 2020
thank you dude
Arturo Gonzalez
on 6 May 2020
God Job! Thank you dude
Suruchi
on 13 Aug 2022
Click on the upper right inverted triangle and choose "dock all in editor " it'll work for sure ; )
David Epstein
on 2 Aug 2023
Neither solution works on my Macbook Pro running os 12.6.7 with Matlab R2021a update 4
I used to have no trouble with command window docked in editor window. Now this seems unachievable. I'm not aware of any relevant changes in the meantime.
Mas Athirah
on 22 Dec 2023
For 2023 matlab, can refer to this link. https://www.youtube.com/watch?v=uTmtL413MtA
or
- open your editor.
- look at the right corner above toolstrip

- click on the mini arrow, the last one next to upside down triangle
Accepted Answer
More Answers (3)
Channabasappa Konin
on 29 Jul 2016
32 votes
Just press Ctrl+Shift+D in the editor window. This might help you.
19 Comments
Kenny Phu
on 21 Jan 2017
this worked perfectly, Thanks!!!!!!!!!
Thierry Ntwari
on 22 Mar 2019
Thanks buddy!
Cecilia Arellano
on 13 Aug 2019
Perfect, thanks!!
Adrián Moreno
on 16 Jan 2020
<3
John Kim
on 25 Feb 2020
yass
Ana Rita Melo
on 27 Feb 2020
thank you so much
Mathew Brauch
on 4 Mar 2020
YESSSSSS
Merve Mutlu
on 29 Apr 2020
yess thank you so muchh
Kübra Ergin
on 26 May 2020
thank youu so muchhh
yohannes tadesse
on 4 Jun 2020
thanks
debanjan pathak
on 28 Sep 2020
thank you so much
Raghulvenkateswaran
on 10 Nov 2020
Edited: Raghulvenkateswaran
on 10 Nov 2020
Perfectly working.......
Luis Felipe Salazar Mayorga
on 26 Nov 2020
Thank you
SODABE BANDALI
on 1 Dec 2020
thank u
Camila Mamani
on 7 Mar 2021
Thank you!! i was trying for one hour with other metods
Thomas Giavasopoulos
on 7 Nov 2021
Thank you! Incredible solution!
Cao Tri Dinh
on 31 May 2022
Thank you for your help. It is very useful.
Gabriel
on 18 Jan 2023
thanks!
Crhistopher
on 3 Sep 2025
thanks it works very well
nedim moglu
on 21 Aug 2021
6 votes
Home-->layout-->>>default is the best I think.
1 Comment
Yasiru
on 15 Oct 2024
it worked, thanks a lot dude.
Ayz Jarwar
on 12 May 2015
3 votes
Look towards the upper right of the editor window for a downward pointing triangle. Click on that and choose Undock Editor.
(This assumes you are running R2012b or later)
THanks it is working.
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!