I have drawn a 3d surface using the surf function. I would like to visualize the 3D volume enclosed between this surf and the x-axis. Would that be possible in Matlab?
Thanks!
Reyhaneh
Best Answer
There are some utilities for this onthe file exchange, and there is the isocaps function which works with isosurface, but there isn't a builtin utility for adding "skirts" to the surface that the surf function creates.
It's actually relatively easy to do by hand. Here's a simple example:
But this only works if all of your Z values are on one side of the origin. If they cross, you need to do something similar to what I described inthis blog post about a similar 2D problem.
Best Answer