文档帮助中心
本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。
释放资源并允许更改 System object 属性值和输入特性
release(obj)
示例
release(obj) 释放系统资源(如内存、文件句柄或硬件连接),并允许您更改属性和输入特性。
obj
全部折叠
创建 Counter 对象并设置属性。
Counter
obj = Counter; obj.UseIncrement = false
obj = Counter with properties: UseIncrement: 0 UseWrapValue: 1 StartValue: 1 Increment: 1 WrapValue: 10
重置并释放该对象。
reset(obj) release(obj)
要释放的 System object。
您可以在 MATLAB® 生成的代码中对 System object 使用 release,但释放其资源后,将无法再次使用该 System object。
release
有关详细信息,请参阅 MATLAB 代码生成中的 System object (MATLAB Coder)。
reset
您点击的链接对应于以下 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