Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

isobject

Determine if input is MATLAB object

Syntax

tf = isobject(A)

Description

tf = isobject(A) returns true if A is an object of a MATLAB® class. Otherwise, it returns false.

Instances of MATLAB fundamental classes return false. Use isa to test for any of these types. See Fundamental MATLAB Classes for more on these classes.

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)
ans =

  logical

   1
isobject(h.UiHandle)
ans =

  logical

   1

Create an object that is a MATLAB numeric type:

a = pi;
isobject(a)
  logical
     0
isa(a,'double')
ans =

  logical

   1

Related Examples

See Also

| |

Introduced before R2006a

Was this topic helpful?