Advisor.authoring.NegativeBlockTypeConstraint 类
命名空间: Advisor.authoring
超类:
创建模型顾问约束以检查不受支持的模块
描述
Advisor.authoring.NegativeBlockTypeConstraint
类的实例定义模型不能包含的模块。
构造
constraint = Advisor.authoring.NegativeBlockTypeConstraint
创建此类的一个实例。
属性
示例
指定不受支持的模块类型
以下命令指定模型不能包含 Integrator 模块、Rate Transition 模块或具有指定封装的 Constant 模块:
c1=Advisor.authoring.NegativeBlockTypeConstraint; c1.ID='ID_1'; s1=struct('BlockType','Integrator','MaskType',''); s2=struct('BlockType','RateTransition','MaskType',''); s3=struct('BlockType','Constant','MaskType','Stateflow'); c1.UnsupportedBlockTypes={s1;s2;s3};
版本历史记录
在 R2018a 中推出