| MATLAB Function Reference | ![]() |
Determine if input is object of given class
Syntax
Description
K = isa(obj, ' returns logical class_name')
1 (true) if obj is of class (or a subclass of) class_name, and logical 0 (false) otherwise.
The argument obj is a MATLAB object or a Java object. The argument class_name is the name of a MATLAB (predefined or user-defined) or a Java class. Predefined MATLAB classes include
To check for a sparse array, use issparse. To check for a complex array, use ~isreal.
Examples
The following example creates an instance of the user-defined MATLAB class named polynom. The isa function identifies the object as being of the polynom class.
See Also
| is* | isappdata | ![]() |
© 1994-2005 The MathWorks, Inc.