在Matlab中保存当前正在运行的脚本 [英] Save currently running script in Matlab

查看:413
本文介绍了在Matlab中保存当前正在运行的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以将当前正在运行的脚本保存在Matlab中?我有一个脚本,该脚本会自动备份一组脚本,但是如果更改了当前脚本,则保存的版本将过时.

Is there a way of saving the currently running script in Matlab? I have a script which automatically takes a backup of a set of scripts although if I have changed the current script then the saved version will be out of date.

也许可以调用一些Java吗?

Perhaps its possible to call some java?

谢谢

推荐答案

在Yair Altman网站上的某个地方(请参阅我的其他答案中的链接),他还提到了

Somewhere on Yair Altman's site (see link in my other answer) he also referred to a blog entry about editorservices, which was introduced with MATLAB R2009b.

editorservices.getActive().save

应该做你想做的事.

这篇关于在Matlab中保存当前正在运行的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆