メインコンテンツ

Simulink.ModelTransform.CommonSourceInterpolation.Results クラス

R2026b

名前空間: Simulink.ModelTransform.CommonSourceInterpolation

適格な Interpolation Using Prelookup ブロックの検索結果

説明

Simulink.ModelTransform.CommonSourceInterpolation.Results クラスのオブジェクトを使用して、適格な Interpolation Using Prelookup ブロックの検索で特定された結果を解析します。

作成

説明

Simulink.ModelTransform.CommonSourceInterpolation.identifyCandidates 関数を実行すると、Simulink.ModelTransform.CommonSourceInterpolation.Results クラスのオブジェクトが作成されます。Simulink.ModelTransform.CommonSourceInterpolation.refactorModel 関数の入力引数としてこのオブジェクトを使用できます。

メモ

モデルのリファクタリングによるエラーを避けるために、Simulink.ModelTransform.CommonSourceInterpolation.Results オブジェクトのプロパティは変更しないでください。

プロパティ

すべて展開する

特定された Interpolation Using Prelookup ブロックおよび Multiport Switch ブロック。構造体として指定します。

Block および Port の番号。構造体として返されます。

特定されたブロック名のリスト。文字の配列として指定します。

特定されたブロックの端子番号のリスト。uint32 整数として指定します。

Block および Port の番号。構造体として返されます。

特定されたブロック名のリスト。文字の配列として指定します。

特定されたブロックの端子番号のリスト。uint32 整数として指定します。

例

すべて折りたたむ

この例では、適格な Interpolation Using Prelookup ブロックの検索結果を解析する方法を示します。

モデル ex_interpolation_optimize を開きます。

openExample('ex_interpolation_optimize')
transformResults = Simulink.ModelTransform.CommonSourceInterpolation.identifyCandidates(ex_interpolation_optimize)
transformResults =

  Results with properties:

    Candidates: [1×1 struct]

 transformResults.Candidates
  struct with fields:

        InterpolationPorts: [4×1 struct]
               SwitchPorts: [4×1 struct]

関数は情報を transformResults という変数に格納します。

バージョン履歴

R2021b で導入