Determine whether input is COM interface
tf = isinterface(c)
example
tf = isinterface(c) returns logical 1 (true) if c is a COM interface. Otherwise, it returns logical 0 (false).
c
1
true
0
false
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.
workbooks
wbk = get(app,'workbooks'); isinterface(wbk)
COM object, specified as a function handle.
COM functions are available on Microsoft Windows® systems only.
iscom