Main Content

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

Simulink.ModelTransform.CommonSourceInterpolation.Results クラス

名前空間: Simulink.ModelTransform.CommonSourceInterpolation

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

R2021b 以降

説明

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 を現在の作業フォルダーに保存します。

    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 で導入