How to plot a 3D surface from individual layers?

9 vues (au cours des 30 derniers jours)
VMueller
VMueller le 12 Nov 2015
Commenté : Star Strider le 12 Nov 2015

<<

>>

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 commentaire
Star Strider
Star Strider le 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.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by