文档帮助中心
本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。
以编程方式运行应用程序
matlab.apputil.run(appid)
示例
matlab.apputil.run(appid) 运行由唯一标识符 appid 所指定的自定义应用程序。
appid
全部折叠
假定安装了两个应用程序:PlotData 和 setslider。使用其 ID 以编程方式运行 PlotData。
PlotData
setslider
获取所有已安装应用程序的 ID。
matlab.apputil.getInstalledAppInfo
ID Name ------------------- ---------------- setsliderAPP setslider PlotDataAPP PlotData
运行 PlotData。
matlab.apputil.run('PlotDataAPP')
要运行的自定义 App 的 ID,指定为字符向量或字符串标量。
示例: 'DataExplorationAPP'
'DataExplorationAPP'
示例: "DataExplorationAPP"
"DataExplorationAPP"
安装自定义应用程序时将返回其 ID。安装应用程序后可以使用 matlab.apputil.getInstalledAppInfo 获取该 ID。
自定义应用程序在运行时,与打包应用程序时确定的一样,MATLAB® 将需要添加的任何文件夹添加到路径中。应用程序退出时,MATLAB 从路径中删除这些文件夹。
可以同时运行多个不同的自定义应用程序。但是,不能同时运行同一应用程序的两个实例。
matlab.apputil.create | matlab.apputil.getInstalledAppInfo | matlab.apputil.install
matlab.apputil.create
matlab.apputil.install
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office