![matlab figure matlab figure](https://www.mathworks.com/help/matlab/ref/figure_size_2.png)
ScreenSize is a four-element vector: :įigure('Position',)Īxes, uicontrol, uimenu, close, clf, gcf, rootobject To create a figure window that is one quarter the size of your screen and is positioned in the upper-left corner, use the root object's ScreenSize property to determine the size.
![matlab figure matlab figure](http://code.guillaumemaze.org/tips/aboutmatlabfigureexportinpdfeps/Matlab.png)
The gcf command returns the handle to the current figure and is useful as an argument to the set and get commands. Use set to modify the properties of an existing figure or get to query the current values of figure properties.
#Matlab figure how to#
You can specify properties as property name/property value pairs, structure arrays, and cell arrays (see the set and get reference pages for examples of how to specify these data types). See the properties section for a description of these properties. To create a figure object, MATLAB creates a new window whose characteristics are controlled by default figure properties (both factory installed and user defined) and properties specified as arguments.
![matlab figure matlab figure](https://1.bp.blogspot.com/-SMituT1ite0/Uac5MCw1S0I/AAAAAAAAABU/IB2oh5FD0RE/s1600/figure_props5.gif)
figure(h) where h is not the handle to a figure, and is not an integer, is an error. If h is not the handle to an existing figure, but is an integer, figure(h) creates a figure, and assigns it the handle h. The current figure is the target for graphics output. If h is the handle to an existing figure, figure(h) makes the figure identified by h the current figure, makes it visible, and raises it above all other figures on the screen. MATLAB uses default values for any properties that you do not explicitly define as arguments.ĭoes one of two things, depending on whether or not a figure with handle h exists. figure objects are the individual windows on the screen in which MATLAB displays graphical output.Ĭreates a new figure object using default property values.Ĭreates a new figure object using the values of the properties specified. Figure (MATLAB Functions) MATLAB Function Referenceįigure(' PropertyName',PropertyValue.)įigure creates figure graphics objects.