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.

isinterface

Determine whether input is COM interface

Syntax

tf = isinterface(h)

Description

tf = isinterface(h) returns logical 1 (true) if handle h is a COM interface. 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');
isinterface(h)

MATLAB® displays false, indicating object h is not an interface.

Test a workbooks object

w = get(h,'workbooks');
isinterface(w)

MATLAB displays true, indicating object w is an interface.

See Also

|

Was this topic helpful?