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

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 Help and Support en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 1 de Jul. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by