isobject - Determine if input is MATLAB object - MATLAB (original) (raw)
Main Content
Determine if input is MATLAB object
Description
tf = isobject(A)
returns true
if A
is an object of a MATLABĀ® class. Otherwise, it returns false
.
Instances of MATLAB numeric, logical
, char
,cell
, struct
, and function handle classes return false
. Use isa to test for any of these types.
Examples
Define the following MATLAB class:
classdef button < handle properties UiHandle end methods function obj = button(pos) obj.UiHandle = uicontrol('Position',pos,... 'Style','pushbutton'); end end end
Test for MATLAB objects.
h = button([20 20 60 60]); isobject(h)
Create an object that is a MATLAB numeric type:
Extended Capabilities
Version History
Introduced before R2006a