필터 지우기
필터 지우기

How can I log executed cells (when using editor in cell-mode) to command history?

조회 수: 1 (최근 30일)
I am using scripts in cell mode to be able to quickly run a few lines on pressing Ctrl+Enter. However, when I run lines this way, they don't show up in the command history. Is there any way to enable this?
The only alternative I know is to highlight the code I want to run, and to then press F9. This copies the code to the command line and executes it, so it ends up in the command history (which is good). But the workflow is not as nice as the Ctrl+Enter of cell mode.

답변 (1개)

Ankita Nargundkar
Ankita Nargundkar 2017년 3월 6일
I am assuming by cell mode you mean "Run Section" option because that is what happens when you use Ctrl+Enter. Yes, it is not shown in the command history because that is the expected behavior.
Cell mode (Run Section) is to debug applications and run a module of code at once. Even if you are unable to show commands in command history all variables still exist in workspace.
For more information you can refer to this stack overflow discussion and this MATLAB documentation

카테고리

Help CenterFile Exchange에서 Control Information에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by