2010-12-10 61 views

回答

12

可以使用java以编程方式访问命令历史记录。

javaHistory=com.mathworks.mlservices.MLCommandHistoryServices.getSessionHistory; 

如果要评价历史上的第10个命令,你会运行

eval(javaHistory(10).toString) 
+0

远远看的是,有一种方法。 +1 – gnovice 2010-12-10 06:21:45