| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
tf = h.ismethod('methodname')
tf = ismethod(h, 'methodname')
tf = h.ismethod('methodname') returns logical 1 (true) if the specified methodname is a method you can call on COM object h. Otherwise, returns logical 0 (false).
tf = ismethod(h, 'methodname') is an alternate syntax.
COM functions are available on Microsoft Windows systems only.
Test members of an instance of a Microsoft Excel application:
h = actxserver ('Excel.Application');
ismethod(h, 'SaveWorkspace')
MATLAB displays true, SaveWorkspace is a method.
Try the same test on UsableWidth:
ismethod(h, 'UsableWidth')
MATLAB displays false, UsableWidth is not a method; it is a property.
class | isevent | isobject | isprop | methods | methodsview
![]() | ismember | isnan | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |