Main Content

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

Simulink.ModelTransform.CommonSourceInterpolation.identifyCandidates

変換に適格な Interpolation Using Prelookup ブロックを特定する

R2021b 以降

説明

transformResults = Simulink.ModelTransform.CommonSourceInterpolation.identifyCandidates(model) は、指定した model でモデル トランスフォーマーが変換できる Interpolation Using Prelookup ブロックを返します。

transformResults = Simulink.ModelTransform.CommonSourceInterpolation.identifyCandidates(model,skipLibraryBlocks) はライブラリ ブロックを無視するかどうかを追加で指定します。

すべて折りたたむ

この例では、モデルで適格な 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]

入力引数

すべて折りたたむ

モデル名。文字ベクトルとして指定します。

変換でライブラリ ブロックをスキップするオプション。数値または logical 1 (true) または 0 (false) として指定します。

出力引数

すべて折りたたむ

特定された冗長な Interpolation Using Prelookup ブロック。Simulink.ModelTransform.CommonSourceInterpolation.Results オブジェクトとして返されます。

バージョン履歴

R2021b で導入