Main Content

iscom

Determine whether input is COM object

Syntax

Description

example

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

Examples

collapse all

Test an instance of aMicrosoft®Excel®application. MATLAB®displaystrue, indicating that the Excel application is a COM object.

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

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

w = get(app,'workbooks'); iscom(w)

Input Arguments

collapse all

COM对象, specified as a function handle.

Limitations

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

See Also

Introduced before R2006a