Getting Started |
Figure Windows
Graphing functions automatically open a new figure window if there are no figure windows already on the screen. If a figure window exists, MATLAB uses that window for graphics output. If there are multiple figure windows open, MATLAB targets the one that is designated the "current figure" (the last figure used or clicked in).
To make an existing figure window the current figure, you can click the mouse while the pointer is in that window or you can type
where n
is the number in the figure title bar. The results of subsequent graphics commands are displayed in this window.
To open a new figure window and make it the current figure, type
Adding Plots to an Existing Graph | Multiple Plots in One Figure |