External Interfaces Reference Previous page   Next Page
set (COM)

Set object or interface property to specified value

Syntax

Description

h.set('pname', value) sets the property specified in the string pname to the given value.

h.set('pname1', value1, 'pname2', value2, ...) sets each property specified in the pname strings to the given value.

set(h, ...) is an alternate syntax for the same operation.

See Converting Data in the External Interfaces documentation for information on how MATLAB converts workspace matrices to COM data types.

Examples

Create an mwsamp control and use set to change the Label and Radius properties:

Here is another way to do the same thing, only without set and invoke:

See Also

get, inspect, isprop, addproperty, deleteproperty


Previous page  send unregisterallevents Next page

© 1994-2005 The MathWorks, Inc.