Release resources and allow changes to System object property values and input characteristics
release(obj)
example
release(obj) releases system resources such as memory, file handles, or hardware connections, and allows you to change properties and input characteristics.
obj
collapse all
Create a Counter object and set a property.
Counter
obj = Counter; obj.UseIncrement = false
obj = Counter with properties: UseIncrement: 0 UseWrapValue: 1 StartValue: 1 Increment: 1 WrapValue: 10
Reset and release the object.
reset(obj) release(obj)
System object you want to release.
You can use release on a System object in code generated from MATLAB®, but after you release its resources, you cannot use that System object again.
release
For details, see System Objects in MATLAB Code Generation (MATLAB Coder).
reset