帮助中心帮助中心
本页翻译不是最新的。点击此处可查看最新英文版本。
命名空间: slmetric.config
激活自定义配置以供度量引擎使用
slmetric.config.setActiveConfiguration(fullfile)
示例
slmetric.config.setActiveConfiguration(fullfile) 将自定义配置设置为默认配置。当您收集使用度量仪表板或 slmetric.Engine execute 方法的度量数据时,度量引擎会使用此自定义配置。
fullfile
slmetric.Engine
execute
注意
将空字符串传递给此函数(即 slmetric.config.setActiveConfiguration(''))会将配置重置为默认值,即出厂配置。
slmetric.config.setActiveConfiguration('')
全部折叠
要设置活动度量配置,请在 MATLAB 命令行中执行以下命令:
slmetric.config.setActiveConfiguration('C:\temp\MyConfig.xml');
包含 XML 文件的文件夹的完整文件路径,该文件包含度量仪表板自定义配置。
示例: 'C:\temp\MyConfig.xml'
数据类型: char
char
在 R2018b 中推出
slmetric.config.Configuration | slmetric.config.getActiveConfiguration
slmetric.config.Configuration
slmetric.config.getActiveConfiguration
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
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