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.

iscom

Determine whether input is COM or ActiveX object

Syntax

tf = iscom(h)

Description

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

COM functions are available on Microsoft Windows® systems only.

Examples

Test an instance of a Microsoft Excel® application.

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

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

Test an Excel interface:

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

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

Introduced before R2006a

Was this topic helpful?