필터 지우기
필터 지우기

Fix Command Window to Accept Input from Top Down

조회 수: 2 (최근 30일)
Diego
Diego 2013년 7월 19일
Hello,
| CW | ED | WS | CW = Command Window
| | | | ED = Editor
| | |------| WS = Workspace
| | | CF | CF = Current Folder
| | | |
Above is how I have my workspace setup. So I start typing on the top left in the command window, and as output comes out/I continue typing it starts to go down until eventually Im typing right above the start menu. I moved it ot the left because the same thing happened on the right but dropbox notifications frequently obscured it.
My question is How do I make it so that in the command window, Im typing on the top and all output appears below it? In other words, my typing/new commands always stays on the top of the window, as opposed to dropping down?
Thanks!

답변 (2개)

per isakson
per isakson 2013년 7월 19일
편집: per isakson 2013년 7월 19일
Matlab doesn't work that way. However, you can achieve a similar result (user experience) the following way:
  • type the commands in the editor (scrap function or script)
  • use cell mode
I do that a lot.
By typing in the editor you build a history without typos. (You don't display the History window.)

Matt J
Matt J 2013년 7월 19일
편집: Matt J 2013년 7월 19일
In other words, my typing/new commands always stays on the top of the window, as opposed to dropping down
Even if that were possible, you would be wasting a lot of screen space much of the time. Basically, with what you're asking for, you would only ever see the most recent output in the window, as if the CLC command were automatically done after every command. Unless it were a long output, most of the window would be blank.
Seems like the better solution is just to resize the command window so that the lower edge is sufficiently above the bottom of the screen, where notifications can't overlap it. You would waste less window that way.
  댓글 수: 2
Diego
Diego 2013년 7월 19일
how do you mean? Wouldn't typing be like this?
| command1 | | command2 |
| output_11 | | output_21 |
| output_12 | | output_22 |
| output_13 | | output_23 |
| output_14 | | |
| output_15 | | |
| output_16 | | command1 |
| | | output_11 |
| | | output_12 |
| | | output_13 |
| | | output_14 |
| | | output_15 |
| | | output_16 |
Matt J
Matt J 2013년 7월 19일
Would it? You never said how what you would want the behavior to be when displaying of previous commands and their outputs. Anyway, I don't think it's possible.
And again, resizing the MATLAB window seems the easiest solution if this whole thing is indeed motivated simply by a desire to prevent taskbar notifications from blocking your view.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by