| 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.isprop('propertyname')
tf
= isprop(h, 'propertyname')
tf = h.isprop('propertyname') returns logical 1 (true) if the specified name is a property of COM object h. Otherwise, returns logical 0 (false).
tf = isprop(h, 'propertyname') is an alternate syntax.
Test a property of an instance of a Microsoft Excel application:
h = actxserver ('Excel.Application');
isprop(h, 'UsableWidth')
MATLAB displays true, UsableWidth is a property.
Try the same test on SaveWorkspace:
isprop(h, 'SaveWorkspace')
MATLAB displays false. SaveWorkspace is not a property; it is a method.
![]() | isprime | isreal | ![]() |

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 |