6.8. Three-Dimensional Plots

For visualization of data in three dimensions, MATLAB provides a number of functions. Most of the functions are the extension of 2-D functions such as plot3, bar3, bar3h and pie3. The 3-D graphs are generally used to display two types of data. First, when two variables are the function of independent variable and secondly, when single variable is a function of two independent variables. To display the data which is the function of two independent variables surface, mesh and contour plots are used.

Some of the built-in 3-D functions are discussed as follows:

6.8.1. plot3

plot3 function is an extension of plot function used in 2-D data display. In case of plot function, two variables are used whereas in plot3 function ...

Get MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.