28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2isprop<br />

Purpose Determine if input is a property of an object<br />

Syntax isprop(h, 'name')<br />

Description isprop(h, 'name')<br />

returns a logical 1 (true) if the specified name is a property you can use with<br />

object h. Otherwise, isprop returns logical 0 (false).<br />

isprop<br />

Examples Create an Excel application and test to see if UsableWidth is a property of the<br />

object. isprop returns true:<br />

h = actxserver ('Excel.Application');<br />

isprop(h, 'UsableWidth')<br />

h.isprop('UsableWidth')<br />

ans =<br />

1<br />

Try the same test on SaveWorkspace, which is a method, and isprop returns<br />

false:<br />

isprop(h, 'SaveWorkspace')<br />

h.isprop('SaveWorkspace')<br />

ans =<br />

0<br />

See Also get(COM), inspect, addproperty, deleteproperty, ismethod, isevent,<br />

isobject, methods, class<br />

2-1263

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!