isinterface - Determine whether input is COM interface - MATLAB (original) (raw)
Main Content
Determine whether input is COM interface
Syntax
Description
tf = isinterface([c](#d126e926020))
returns logical1
(true
) if c
is a COM interface. Otherwise, it returns logical 0
(false
).
Examples
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
COM object, specified as a function handle.
Limitations
- COM functions are available only on Microsoft Windows® systems.
Extended Capabilities
Version History
Introduced before R2006a