MATLAB Object-Oriented Programming

(Joyce) #1
The audioplayer function creates an object that you access using the object variable
chorus. MATLAB stores the audio source and other information in the object properties.

Here are the properties and values for the chorus instance of the audioplayer:

chorus

chorus =

Click the link to get the documentation on audioplayer objects.

The object’s documentation discusses the purpose of the object and describes the
properties and methods that you use when working with objects of that class.

You can also list the methods to see what operations you can perform. Pass the object to
the methods function to see the list:

methods(chorus)

Methods for class audioplayer:

audioplayer getdisp pause resume stop

5 Class Definition—Syntax Reference

Free download pdf