このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の 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)