Chapter 6
Understanding Plotting Basics
In This Chapter
Defining and understanding plots
Working with the plot function
Changing plot specifics
Creating 2D plots
MATLAB includes fabulous routines for plotting (or graphing) the data and expressions that you supply to the software. Using MATLAB’s familiar interface, you can produce visual representations of various functions and data sets, including 2D x-y graphs, log scales, bar, and polar plots, as well as many other options. The visuals that MATLAB produces resemble anything from the graph of an algebraic equation to pie charts often used in business and to specialized graphs.
In this chapter, you find out how to use 2D plotting functions to create expression and data plots and how the same process works with other plotting routines in MATLAB. You also discover the commonly used visual styles for representing various types of data, how to combine plots, and how to modify the plots to match specific data sets.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access
With MATLAB, you can ...