이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
slmetric.metric.getAvailableMetrics
네임스페이스: slmetric.metric
(제거 예정) 사용 가능한 메트릭 얻기
Metrics Dashboard 사용자 인터페이스, 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출력 인수
메트릭 엔진의 메트릭 식별자입니다.
메트릭 속성으로, 다음 필드를 포함하는 구조체형 배열로 반환됩니다.
| 이름 | 메트릭 알고리즘의 이름입니다. |
| 설명 | 메트릭 알고리즘에 대한 설명입니다. |
| 내장됨 | 메트릭이 Simulink® Check™에 포함되어 있는지 여부를 나타내는 부울입니다. |
| 버전 | 메트릭 알고리즘 버전입니다. |
데이터형: struct
버전 내역
R2016a에 개발됨Metrics Dashboard 사용자 인터페이스, 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)