How does surface plot(surf(x,y,z) work?

4 views (last 30 days)
JohnS
JohnS on 25 Jan 2015
Answered: Gareth Thomas on 25 Jan 2015
when plotting surf(x,y,z), and setting z to an x by y vector of ones. I'm under the impression that the surface will look the same, with the exception of the "texture of surface" when varying numbers for x and y. I'm trying to gain a better understanding on how this function generates 3D plots.

Answers (1)

Gareth Thomas
Gareth Thomas on 25 Jan 2015
When I started using surf I also found it slightly confusing. What helped me figure it out was the documentation:
Having said that is you have or need more help, than the examples there try pressing the "was this useful button at the bottom"and let the MathWorks doc team know what they can do to improve it:)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!