MATLAB 帮助中心
类: matlab.System
控制离散状态是否可以更改数据类型
mutable = isDiscreteStateSpecificationMutableImpl(obj)
mutable = isDiscreteStateSpecificationMutableImpl(obj) 返回离散状态是否可以在对象处于使用中状态时更改数据类型。如果此方法返回 false,则当对象处于使用中状态时,离散状态必须保持相同的数据类型。
mutable
obj
false
isDiscreteStateSpecificationMutableImpl 方法对 MATLAB System 模块不起作用。离散状态设定在 MATLAB System 模块中始终是不可变的。
isDiscreteStateSpecificationMutableImpl
您必须先对此方法设置 Access = protected。
Access = protected
全部展开
System object 句柄,用于访问特定于该对象的属性、状态和方法。如果您的 isDiscreteStateSpecificationMutableImpl 方法不使用该对象,您可以用 ~ 替换此输入。
~
true
如果不实现此方法,则离散状态可以更改数据类型(除非设置了 StrictDefaults 类特性)。如果实现此方法,则返回 true 表示离散状态数据类型可以更改,返回 false 表示不能更改。
StrictDefaults
通过添加 isDiscreteStateSpecificationMutableImpl 方法并返回 false,可以限制更改离散状态的数据类型。通过添加此方法,可以限制 System object 的用户不能在 System object 处于使用中状态时更改离散状态的数据类型。
function flag = isDiscreteStateSpecificationMutableImpl(obj) flag = false; end
在 R2018a 中推出
getDiscreteStateImpl | getDiscreteStateSpecificationImpl | isTunablePropertyDataTypeMutableImpl
getDiscreteStateImpl
getDiscreteStateSpecificationImpl
isTunablePropertyDataTypeMutableImpl
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处