release - Release resources and allow changes to System object property values and input characteristics - MATLAB (original) (raw)

Main Content

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

Syntax

Description

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

example

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.

Input Arguments

collapse all

System object you want to release.

Extended Capabilities

expand all

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.

For details, see System Objects in MATLAB Code Generation (MATLAB Coder).

Version History

Introduced in R2010a