O'Reilly logo

MATLAB Graphical Programming by César Pérez López

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 3

image

Three-Dimensional Graphics, Warped Curves and Surfaces, Contour Graphics

3.1 Three-Dimensional Graphics (3-D), Warped Curves

The basic commands that MATLAB uses to draw graphs that generate a line in three dimensions or warped curves are the following:

  • plot3(X, Y, Z) draws the set of points (X, Y, Z), where X, Y and Z are vectors. X, Y and Z can also be arrays of the same size, in which case a graph is made for each triplet of rows and on the same axis. For complex values of X, Y and Z, the imaginary parts are ignored.
  • plot3(X,Y,Z,S) draws the plot (X, Y, Z) with the settings defined in S. Usually S consists of two-symbols between single ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required