Running a command in the console so it appears in the history

8 visualizaciones (últimos 30 días)
Hi,
com.mathworks.mlservices.MLCommandHistoryServices can be used to get and remove the history but is there a way to append something? For example, I'd like to run '%foo bar' in the command console and and have it appear as the last line in history (up key recovers it).
com.mathworks.mlservices.MLExecuteServices.consoleEval allows me to evaluate something in in the context of the console but it doesn't get appended to the history.
Any ideas?
Thanks

Respuesta aceptada

Nathan
Nathan el 2 de Jul. de 2013
Self-update: you can do it with com.mathworks.mlservices.MLExecuteServices.executeCommand().

Más respuestas (0)

Categorías

Más información sobre Entering Commands en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by