How to Plot Multiple Plots in MATLAB

Save

MATLAB is a language designed for technical computing that includes an interactive, graphical environment . The "Figures" window in the MATLAB desktop allows you to create graphical plots of data with a graphical user interface. A figure is a MATLAB object that defines and arranges plots and other elements in a window. Figures can contain as many plots as you like. Use the Plot Tools in the "Figures" window to produce arrangements of multiple plots suitable for presentation.

  • Click the "Desktop" menu and select "Figures" to reveal the "Figures" window if it isn't already visible.

  • Click the square button on the right side of the blue bar at the top of the "Figures" window to maximize it so you have ample space to work with.

  • Click the "New Figure" button, the leftmost button in the upper left corner of the window, to create a new figure.

  • Click the "Show Plot Tools and Dock Figure" button (the rightmost of the group in the upper left) if the Figure Palette, Plot Browser, and Property Editor panels are not visible. You also can reveal each of these panels from the "Desktop" menu.

  • Click the small grid icon to the right of the "2D Axes" or "3D Axes" items in the "New Subplots" section of the Figure Palette. Drag your mouse across the grid that appears until as many squares in it are colored gray as plots you want to add. Click to create them. This command removes any previous plots you've created, so only use it when starting a new figure.

  • Click "2D Axes" or "3D Axes" in the "New Subplots" section to add another plot to the bottom of the figure. You can add as many plots as you like this way.

References

  • Photo Credit Thinkstock/Comstock/Getty Images
Promoted By Zergnet

Comments

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!