This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

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 type library. Refer to the COM vendors documentation.

V = get(h,'name') returns value of property specified by 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 documentation describes the specific meaning of the return value. MATLAB might convert the data type of the return value. For a description of how MATLAB converts COM data types, see Handle COM Data in MATLAB.

Introduced before R2006a

Was this topic helpful?