| MATLAB Function Reference | Search  Help Desk |
| isa | Examples See Also |
Detect an object of a given class
Syntax
K = isa(obj,'class_name')
Description
K = isa(obj,'class_name')
returns logical true (1) if obj is of class (or a subclass of) class_name, and logical false (0) otherwise.
The argument class_name is the name of a user-defined or pre-defined class of objects. Predefined MATLAB classes include: Examples
isa(rand(3,4),'double')
ans =
1
See Also
class