Appendix B
MATLAB’s Plotting Routines
The tables in this appendix, B-1 through B-5, list each of the plotting routines in MATLAB with a brief description and an example. To save space, some entries show a single encompassing example for multiple commands. An example may also use an ellipsis (…) to show the continuation of a pattern. To assist you, the code includes several functions to generate test matrices, for example, rand(), magic(), peaks(), cylinder(), ellipsoid(), and sphere(). It’s also important to note that MATLAB is always changing and that some functions, like ezpolar(), are eventually going to go away. After all, many of the other ez* functions have retired and are now sipping beverages on a sandy beach on a tropical island.
TABLE B-1 Basic Plotting Routines
Routine |
Description |
Example |
|---|---|---|
|
Just like |
|
|
Plots data passed in by vectors |
|
|
Plots data where |
|
|
Like |
|
|
Plots the expression or function |
|
|
Plots data on a log scale on both x- and y-axes — |
|
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