1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Matlab 3d graph

  1. Mar 13, 2009 #1
    i can produce 2d graphs with my code but i need to produce 3d aswell, is there no easy way i can produce a 3d graph?
  2. jcsd
  3. Mar 13, 2009 #2
    Of course you can create 3d plots in MATLAB... the function is called plot3 and instead of taking an X and Y argument, it takes X, Y and Z. See MATLAB help for more detail.

    Are you looking for something that is more similar to ezplot? There is also a function called ezplot3, but it works only for parametric equations (you need three separate functions instead of F(x,y,z).

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook