| MATLAB Function Reference | ![]() |
isprop(h, 'name')
isprop(h, 'name') returns logical 1 (true) if the specified name is a property you can use with object h. Otherwise, isprop returns logical 0 (false).
Create a Microsoft® Excel® application and test to see if UsableWidth is a property of the object. isprop returns true:
h = actxserver ('Excel.Application');
isprop(h, 'UsableWidth')
ans =
1Try the same test on SaveWorkspace, which is a method, and isprop returns false:
isprop(h, 'SaveWorkspace')
ans =
0get(COM), inspect, addproperty, deleteproperty, ismethod, isevent, isobject, methods, class
![]() | isprime | isreal | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |