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.
0 件のコメント
回答 (1 件)
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Control Information についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!