
figure - Create figure window - MATLAB - MathWorks
When you specify this argument, MATLAB searches for an existing figure in which the Number property is equal to n. If no figure exists with that property value, MATLAB creates a new …
Figure - Figure window - MATLAB - MathWorks
Description A figure is a container for graphics or apps. Use the Figure object to modify the appearance and behavior of a figure after you create it.
subplot - Create axes in tiled positions - MATLAB - MathWorks
This MATLAB function divides the current figure into an m-by-n grid and creates axes in the position specified by p.
How to use figure (1) in MATLAB APP - MathWorks
Jun 20, 2025 · Using an integer to refer to figures is an outdated and discouraged code pattern. In R2014b we introduced graphics objects to represent figures, and this is the preferred method.
print - Print figure or save to specific file format - MATLAB
You can refer to a figure using either its object variable name or using the figure number preceded by -f. For example, -f2 refers to the figure with a Number property value of 2.
Prepare Figures and Axes for Graphs - MATLAB & Simulink
MATLAB plotting functions rely on the values of the figure and axes NextPlot properties to determine whether to add, clear, or clear and reset the figure and axes before drawing the new …
hold - Retain current plot when adding new plots - MATLAB
Use hold on to add a second line plot without deleting the existing line plot. The new plot uses the next color and line style based on the ColorOrder and LineStyleOrder properties of the axes.
TeX (LaTeX math mode) symbols in legends and labels in MATLAB …
Nov 22, 2011 · Use dollar symbols around the text. For example: title ('$\hat {\psi}$','Interpreter','latex') If you are using the legend function in R2018a or earlier, you must …
saveas - Save figure to specific file format - MATLAB - MathWorks
The best practice is to make all the necessary changes while your figure is still in MATLAB. Typically, saveas generates vector graphics files that scale well when resized.
gcf - Current figure handle - MATLAB - MathWorks
Description fig = gcf returns the current figure handle. If a figure does not exist, then gcf creates a figure and returns its handle. You can use the figure handle to query and modify figure …