This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ismethod (COM)

Determine whether input is COM object method


tf = ismethod(h,'methodname')


tf = ismethod(h,'methodname') returns logical 1 (true) if the specified methodname is a method you can call on COM object h. Otherwise, returns logical 0 (false).

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


Test members of an instance of a Microsoft Excel® application.

h = actxserver('Excel.Application');

MATLAB® returns true, SaveWorkspace is a method.

Try the same test on UsableWidth.


MATLAB returns false, UsableWidth is not a method; it is a property.

Was this topic helpful?