1. PF Contest - Win "Conquering the Physics GRE" book! Click Here to Enter
    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!

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).

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook