| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
V = h.get
V = h.get('propertyname')
V = get(h, ...)
V = h.get 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 the MATLAB software cannot read the object's type library. Refer to the COM vendor's documentation. For Automation objects, if the vendor provides documentation for a specific property, use the V = get(h, ...) syntax to call it.
V = h.get('propertyname') returns the value of the property specified in the string, propertyname.
V = get(h, ...) is an alternate syntax for the same operation.
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 in the External Interfaces documentation.
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:
e.Path
Depending on your spreadsheet program, MATLAB software displays:
ans = C:\Program Files\MSOffice\OFFICE11
Retrieve a list of all properties for the CommandBars interface:
c = e.CommandBars.get
MATLAB displays information similar to the following:
c =
Application: [1x1
Interface.Microsoft_Excel_11.0_Object_Library._Application]
Creator: 1.4808e+009
ActionControl: []
ActiveMenuBar: [1x1
Interface.Microsoft_Office_12.0_Object_Library.CommandBar]
Count: 129
DisplayTooltips: 1
DisplayKeysInTooltips: 0
LargeButtons: 0
MenuAnimationStyle: 'msoMenuAnimationNone'
Parent: [1x1
Interface.Microsoft_Excel_11.0_Object_Library._Application]
AdaptiveMenus: 0
DisplayFonts: 1
DisableCustomize: 0
DisableAskAQuestionDropdown: 0set (COM), inspect, isprop, addproperty, deleteproperty
![]() | get | get (hgsetget) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |