MATLAB Object-Oriented Programming

(Joyce) #1

delete horzcat play set vertcat
get isplaying playblocking setdisp


To play the audio, use the play method:


play(chorus)


Functions to Test Objects


These functions provide logical tests, which are useful when using objects in ordinary
functions.


Function Description
isa Determine whether an argument is an object of specific class.
isequal Determine if two objects are equal, which means both objects are of
the same class and size and their corresponding property values are
equal.
a == b (eq) Determine if handle variable a refers to the same object as handle
variable b.
isobject Determine whether input is a MATLAB object

Functions to Query Class Components


These functions provide information about object class components.


Function Description
class Return class of object.
enumeration Display class enumeration members and names.
events List event names defined by the class.
methods List methods implemented by the class.
methodsview List methods in separate window.
properties List class property names.

Operations on Objects
Free download pdf