Can I make commands in the editor window run automatically when I press enter? Like in the command window?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Matthew Nguyen
el 30 de En. de 2018
Respondida: Matthew
el 10 de Sept. de 2018
Whenever I start a new script and enter in commands, such as assigning variables, the code does not execute unless I click 'run' at the top. Is there a way to make variable assignments execute every time I press enter instead of having to click 'run' each time? Like in the command window.
0 comentarios
Respuesta aceptada
Steven Lord
el 30 de En. de 2018
I would stick either to selecting the line and using the existing Evaluate Selection keyboard shortcut, or write your code using code sections and use one of the shortcuts for evaluating a section. Filter the keyboard shortcuts list by typing Evaluate into the filter box to see the available shortcuts. You probably want to use either "Evaluate Current Section" or "Evaluate Current Section and Advance."
0 comentarios
Más respuestas (1)
Matthew
el 10 de Sept. de 2018
I think you need to understand that the whole purpose of using the Editor Window is for writing programs. You can set a bunch of breakpoints and 'Debug' to see the effects of certain lines of codes on a program. This is perhaps what you meant to ask for.
0 comentarios
Ver también
Categorías
Más información sobre Environment and Settings 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!