Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

isinterface

Determine whether input is COM interface

Syntax

tf = isinterface(c)

Description

example

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

Examples

collapse all

Test an instance of a Microsoft® Excel® application. MATLAB® displays false, indicating the application is not an interface.

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

Test a workbooks object. MATLAB displays true, indicating a workbook is an interface.

wbk = get(app,'workbooks');
isinterface(wbk)

Input Arguments

collapse all

COM object, specified as a function handle.

Limitations

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

Introduced before R2006a

Was this topic helpful?