How to plot a 3D surface from individual layers?

9 views (last 30 days)

<<

>>

I know questions about 3-d plotting come by quite often, but so far I couldn't find a solution to my problem.

I have a set of coordinates x,y (black dots in the plot) for each depth layer z that define the outer limit of a 3-d vortex (kind of like a tornado). The spacing in z is non uniform, also the length of (x,y) is different for different depth levels. What I want to do is plotting a 3-d surface "closing" the vertical gaps between the different lines.

I have tried combining all x,y,z data in vectors and then playing around with griddata/surface plot combinations, but it didn't lead to the desired result, because interpolation then happens in all directions, but all I want is filling the z-direction.

  1 Comment
Star Strider
Star Strider on 12 Nov 2015
The only possibility I can suggest is the cylinder function. It could work for you without modification. At the very least, it could provide you with a way to approach your plot.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!