How can I log executed cells (when using editor in cell-mode) to command history?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Ankita Nargundkar
el 6 de Mzo. de 2017
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 comentarios
Ver también
Categorías
Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!