Documentation

isinterface

Determine whether input is COM interface

Syntax

tf = isinterface(c)

Description

example

tf = isinterface(c)returns logical1(true) ifcis a COM interface. Otherwise, it returns logical0(false).

Examples

collapse all

Test an instance of aMicrosoft®Excel®application. MATLAB®displaysfalse, indicating the application is not an interface.

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

Test aworkbooksobject. MATLAB displaystrue, 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?