Main Content

Simulink.ModelTransform.CommonSourceInterpolation.identifyCandidates

Identify eligible Interpolation Using Prelookup blocks to transform

Description

transformResults = Simulink.ModelTransform.CommonSourceInterpolation.identifyCandidates(model) returns the Interpolation Using Prelookup blocks that the Model Transfomer can transform in the specified model.

transformResults = Simulink.ModelTransform.CommonSourceInterpolation.identifyCandidates(model,skipLibraryBlocks) additionally specifies whether to ignore library blocks.

Examples

collapse all

This example shows how to search a model for eligible Interpolation Using Prelookup blocks and store the results.

transformResults = Simulink.ModelTransform.CommonSourceInterpolation.identifyCandidates('ex_model_transformer')
transformResults =

  Results with properties:

    Candidates: [1×1 struct]

transformResults.Candidates = 

  struct with fields:

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

Input Arguments

collapse all

Model name, specified as a character vector.

Option to skip library blocks for transformation, specified as a numeric or logical 1 (true) or 0 (false).

Output Arguments

collapse all

Identified redundant Interpolation Using Prelookup blocks, returned as a Simulink.ModelTransform.CommonSourceInterpolation.Results object.

Introduced in R2021b