slmetric.metric.getAvailableMetrics
命名空间: slmetric.metric
(将删除)获取可用度量
以后的版本中将会删除度量仪表板用户界面、metricdashboard 函数、slmetric 包 API 以及相应的自定义项。有关详细信息,请参阅Migrating from Metrics Dashboard to Model Maintainability Dashboard。
说明
示例
此示例说明如何获得可用的模型度量 ID。
ID = slmetric.metric.getAvailableMetrics()
ID =
26×1 cell array
{'mathworks.metrics.CloneContent' }
{'mathworks.metrics.CloneDetection' }
{'mathworks.metrics.CyclomaticComplexity' }
{'mathworks.metrics.DescriptiveBlockNames' }
{'mathworks.metrics.DiagnosticWarningsCount' }
{'mathworks.metrics.ExplicitIOCount' }
{'mathworks.metrics.FileCount' }
{'mathworks.metrics.IOCount' }
{'mathworks.metrics.LayerSeparation' }
{'mathworks.metrics.LibraryContent' }
{'mathworks.metrics.LibraryLinkCount' }
{'mathworks.metrics.MatlabCodeAnalyzerWarnings' }
{'mathworks.metrics.MatlabFunctionCount' }
{'mathworks.metrics.MatlabLOCCount' }
{'mathworks.metrics.ModelAdvisorCheckCompliance.hisl_do178'}
{'mathworks.metrics.ModelAdvisorCheckCompliance.maab' }
{'mathworks.metrics.ModelAdvisorCheckIssues.hisl_do178' }
{'mathworks.metrics.ModelAdvisorCheckIssues.maab' }
{'mathworks.metrics.ModelFileCount' }
{'mathworks.metrics.ParameterCount' }
{'mathworks.metrics.SimulinkBlockCount' }
{'mathworks.metrics.StateflowChartCount' }
{'mathworks.metrics.StateflowChartObjectCount' }
{'mathworks.metrics.StateflowLOCCount' }
{'mathworks.metrics.SubSystemCount' }
{'mathworks.metrics.SubSystemDepth' }此示例说明如何获取可用的模型度量属性。
[ID,PROPS]=slmetric.metric.getAvailableMetrics()
ID =
26×1 cell array
{'mathworks.metrics.CloneContent' }
{'mathworks.metrics.CloneDetection' }
{'mathworks.metrics.CyclomaticComplexity' }
{'mathworks.metrics.DescriptiveBlockNames' }
{'mathworks.metrics.DiagnosticWarningsCount' }
{'mathworks.metrics.ExplicitIOCount' }
{'mathworks.metrics.FileCount' }
{'mathworks.metrics.IOCount' }
{'mathworks.metrics.LayerSeparation' }
{'mathworks.metrics.LibraryContent' }
{'mathworks.metrics.LibraryLinkCount' }
{'mathworks.metrics.MatlabCodeAnalyzerWarnings' }
{'mathworks.metrics.MatlabFunctionCount' }
{'mathworks.metrics.MatlabLOCCount' }
{'mathworks.metrics.ModelAdvisorCheckCompliance.hisl_do178'}
{'mathworks.metrics.ModelAdvisorCheckCompliance.maab' }
{'mathworks.metrics.ModelAdvisorCheckIssues.hisl_do178' }
{'mathworks.metrics.ModelAdvisorCheckIssues.maab' }
{'mathworks.metrics.ModelFileCount' }
{'mathworks.metrics.ParameterCount' }
{'mathworks.metrics.SimulinkBlockCount' }
{'mathworks.metrics.StateflowChartCount' }
{'mathworks.metrics.StateflowChartObjectCount' }
{'mathworks.metrics.StateflowLOCCount' }
{'mathworks.metrics.SubSystemCount' }
{'mathworks.metrics.SubSystemDepth' }
PROPS =
1×26 struct array with fields:
Name
Description
IsBuiltIn
Version输出参量
度量引擎中的度量标识符。
度量属性,以包含下列字段的结构体数组形式返回:
| 名称 | 度量算法的名称。 |
| 描述 | 度量算法的描述。 |
| IsBuiltIn | 布尔值,指示 Simulink® Check™ 是否附带该度量。 |
| 版本 | 度量算法版本。 |
数据类型: struct
版本历史记录
在 R2016a 中推出以后的版本中将会删除度量仪表板用户界面、metricdashboard 函数、slmetric 包 API 以及相应的自定义项。有关详细信息,请参阅Migrating from Metrics Dashboard to Model Maintainability Dashboard。
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)