FUNCTION REFERENCE
get
Read properties of graphics and audio objects.
Read properties of graphics and audio objects.
Syntax
v = get(h, 'PropertyName')Syntax
props = get(player)get(player) and get(recorder) return a struct of audio properties. Specify a property name to read just that value.
h is a handle from groot (or numeric 0), gca, gcf, figure, axes, plot or patch. One property name per call. Root (0 or groot): Type, ScreenSize, MonitorPositions, Children, CurrentFigure, Units, ScreenPixelsPerInch, Tag, UserData, ShowHiddenHandles, default (struct of set defaults), Default<Type><Prop>, and Factory<Type><Prop>. Axes: Type, Parent, XLim, YLim, XScale, YScale, XGrid, YGrid, Position, NextPlot, Box, Color, XColor, YColor. Figure: Name, Number, Theme, ThemeMode, ColorMode, Color, CurrentAxes, Visible. Lines: Type, Parent, DisplayName, Visible, LineWidth. Reading LineWidth of a line errors until LineWidth has been set on it. For bar and patch objects LineWidth is 0.5 by default. Also: axes Title, XLabel, YLabel (text handles), FontSize, ColorOrder, Colormap, CLim, Children, YAxisLocation; figure Colormap and Children; lines XData, YData, Color, Marker, MarkerSize; text and colorbar objects (see text, colorbar). h.Prop reads the same value; for an array of handles [h.Prop] collects one value per handle.
The Parent of a figure is groot.
Example
plot(1:3); get(gca, 'XLim') % [1 3]Example
get(0, 'Type') % 'root'Differences from MATLAB: A graphics handle requires a property name.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.