MATLAB: How to make a certain 3D Plot? (I want lines from the x-y plane extending to appropriate z coordinate)

3d plots

Hi everyone, so I was trying to make a 3d plot of some data that I've pulled out from testing. I've looked at examples on how to mesh it for 3d surfaces but my data points are so few and far between that the meshing looks jaggedy and unsightly. However, I was looking around and stumbled across this site
where it had examples on 3d plots, but the thing that stood out is I would like to make a plot similar to the plot displayed on that first webpage.
I have all my data in matrices and a plot like the one displayed above would be great for my data! How would I go about making a plot like that? Thanks!

Best Answer

  • use
    stem3(x,y,z)