| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
CV = get(H,'PropertyName')
SV = get(h)
get(h)
CV = get(H,'PropertyName') returns the value of the named property from the objects in the handle array H. If H is scalar, get returns a single value; if H is an array, get returns a cell array of property values. If you specify a cell array of property names, then get returns a cell array of values, where each row in the cell corresponds to an element in H and each column in the cell corresponds to an element in the property name cell array.
If H is nonscalar and PropertyName is the name of a dynamic property, get returns a value only if the property exists in all objects referenced in H.
SV = get(h) returns a struct array in which the field names are the object's property names and the values are the current values of the corresponding properties. If h is an array, then SV is a numel(h)-by-1 array of structs.
get(h) displays all property names and their current values for the MATLAB objects with handle h.
Your subclass can override the hgsetget getdisp method to control how MATLAB displays this information.
See Implementing a Set/Get Interface for Properties
get, handle, hgsetget, set (hgsetget)
![]() | get (COM) | get (memmapfile) | ![]() |

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 |