This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Determine whether input is COM or ActiveX object


tf = iscom(c)



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


collapse all

Test an instance of a Microsoft Excel® application. MATLAB® displays true, indicating that the Excel application is a COM object.

app = actxserver('Excel.Application');

Create a workbooks object and test. MATLAB displays false, indicating that a workbook is not a COM object.

w = get(app,'workbooks');

Input Arguments

collapse all

COM object, specified as a function handle.


  • COM functions are available on Microsoft Windows® systems only.

Introduced before R2006a