帮助中心帮助中心
本页翻译不是最新的。点击此处可查看最新英文版本。
重置 System object 的内部状态
reset(obj)
示例
reset(obj) 会将 System object™ 的内部状态和输入属性重置为其初始值。
obj
如果 obj 写入或读取文件,reset 会将该对象重置到该文件的开头。
reset
如果 obj 更改属性,reset 会将属性重置为其初始默认值。
如果 obj 使用随机数字生成种子,reset 会重置种子属性。
全部折叠
创建 Counter 对象并设置属性。
Counter
obj = Counter; obj.UseIncrement = false
obj = Counter with properties: UseIncrement: false UseWrapValue: true StartValue: 1 Increment: 1 WrapValue: 10
重置并释放该对象。
reset(obj) release(obj)
您要重置其状态的 System object。
有关详细信息,请参阅 MATLAB 代码生成中的 System object (MATLAB Coder)。
在 R2010a 中推出
release
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office