Main Content

release

Release resources and allow changes to System object property values and input characteristics

Description

example

release(obj) releases system resources such as memory, file handles, or hardware connections, and allows you to change properties and input characteristics.

Examples

collapse all

Use the release method to release resources and change properties of System object™ counter. Refer to the example in setup for the class definition of counter.

Create a Counter object and set a property.

obj = Counter;
obj.UseIncrement = false
obj = 
  Counter with properties:

    UseIncrement: false
    UseWrapValue: true
      StartValue: 1
       Increment: 1
       WrapValue: 10

Reset and release the object.

reset(obj)
release(obj)

Input Arguments

collapse all

System object you want to release.

Extended Capabilities

Version History

Introduced in R2010a