主要内容

本页采用了机器翻译。点击此处可查看英文原文。

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 模块,指定为结构体。

BlockPort 编号,以结构体返回。

已识别的模块名称列表,以字符数组指定。

已识别块的端口号列表,以 uint32 整数形式指定

BlockPort 编号,以结构体返回。

已识别的模块名称列表,以字符数组指定。

已识别块的端口号列表,以 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 中推出