Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

iscom - Determine whether input is COM or ActiveX object

Syntax

tf = h.iscom
tf = iscom(h)

Description

tf = h.iscom returns logical 1 (true) if handle h is a COM or Microsoft® ActiveX® object. Otherwise, returns logical 0 (false).

tf = iscom(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.iscom

MATLAB displays true, indicating object h is a COM object.

 

Test an Excel interface:

h = actxserver('Excel.Application');
%Create a workbooks object
w = h.get('workbooks');
w.iscom

MATLAB displays false, indicating object w is not a COM object.

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