Main Content

Simulink.ModelTransform.CommonSourceInterpolation.Results Class

Namespace: Simulink.ModelTransform.CommonSourceInterpolation

Results of search for eligible Interpolation Using Prelookup blocks

Since R2021b

Description

Use an object of the Simulink.ModelTransform.CommonSourceInterpolation.Results class to analyze the identified results of a search for eligible Interpolation Using Prelookup blocks.

Creation

Description

The Simulink.ModelTransform.CommonSourceInterpolation.identifyCandidates function creates an object of the Simulink.ModelTransform.CommonSourceInterpolation.Results class when executed. You can use this object as the input argument of the Simulink.ModelTransform.CommonSourceInterpolation.refactorModel function.

Note

Do not change the properties of a Simulink.ModelTransform.CommonSourceInterpolation.Results object in order to avoid errors with model refactoring.

Properties

expand all

Identified Interpolation Using Prelookup blocks and Multiport Switch block, specified as a structure.

Block and Port number, returned as a structure.

List of identified block names, specified as array of characters.

List of port numbers of the identified blocks, specified as a uint32 integer

Block and Port number, returned as a structure.

List of identified block names, specified as array of characters.

List of port numbers of the identified blocks, specified as a uint32 integer

Examples

collapse all

This example shows how to analyze the results of a search for eligible Interpolation Using Prelookup blocks.

Open the model 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]

The function stores the information in a variable called transformResults.

Version History

Introduced in R2021b