get (COM)

Get property value from interface, or display properties


V = get(h)
V = get(h,'name')


V = get(h) returns a list of all properties and their values for the object or interface, h.

If V is empty, either there are no properties in the object, or MATLAB® cannot read the object's type library. Refer to the COM vendors documentation.

V = get(h,'name') returns value of property specified in string, name.

COM functions are available on Microsoft® Windows® systems only.


Create a COM server running Microsoft Excel® software:

e = actxserver('Excel.Application');

Retrieve a single property value.

ans =
   C:\Program Files\MSOffice\OFFICE11

MATLAB displays the path to your program.

List of all properties for the CommandBars interface.

c = CommandBars.get(e)

MATLAB displays information for your version of Excel.

More About

collapse all


The meaning and type of the return value is dependent upon the specific property being retrieved. The object's documentation should describe the specific meaning of the return value. MATLAB may convert the data type of the return value. For a description of how MATLAB converts COM data types, see Handling COM Data in MATLAB Software.

Introduced before R2006a

Was this topic helpful?