| MATLAB® | ![]() |
tf = h.isinterface
tf = isinterface(h)
tf = h.isinterface returns logical 1 (true) if the input handle, h, is a COM interface. Otherwise, isinterface returns logical 0 (false) .
tf = isinterface(h) is an alternate syntax for the same operation.
COM functions are available on Microsoft Windows systems only.
Create a COM server running Microsoft Excel application. The actxserver function returns a handle h to the server object. Testing this handle with isinterface returns false:
h = actxserver('Excel.application');
h.isinterface
MATLAB software displays:
ans = 0
Create an interface to workbooks, returning handle w. Testing this handle with isinterface returns true:
w = h.get('workbooks');
w.isinterface
MATLAB displays:
ans = 1
![]() | isinteger | isjava | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |