Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

isinterface - Determine whether input is COM interface

Syntax

tf = h.isinterface
tf = isinterface(h)

Description

tf = h.isinterface returns logical 1 (true) if handle h is a COM interface. Otherwise, returns logical 0 (false).

tf = isinterface(h) is an alternate syntax.

COM functions are available on Microsoft Windows systems only.

Examples

Test an instance of a Microsoft Excel application:

h = actxserver('Excel.Application');
h.isinterface

MATLAB displays false, indicating object h is not an interface.

 

Test a workbooks object:

w = h.get('workbooks');
w.isinterface

MATLAB displays true, indicating object w is an interface.

See Also

interfaces | iscom

How To

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS