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 plots- How to plot 3D lines rather than surface?

  1. Jan 2, 2008 #1
    Hi all.
    I am using meshgrid and mesh to plot 3D graphs in MATLAB.
    Though my meshgrid is quite "discrete", MATLAB always try to generate surface for me.
    What I actually want is some discrete lines rather than the surface.
    Anyone can teach me how to obtain discrete lines?
  2. jcsd
  3. Jan 2, 2008 #2


    User Avatar

    I'm not quite sure what you want...
    Try looking at graph3d for the different plots.
    Perhaps waterfall is what you want?
  4. Jan 2, 2008 #3


    User Avatar

    you can use plot3() to draw 3d lines.
    but I'm not sure what you really want!
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook