Creating Intersecting Surface Plots

3 views (last 30 days)
Hi,
I would like to plot two 3D surfaces (created with surf) in the same graph , so to visualize the intersection areas. Is this possible?
Thank you!

Accepted Answer

Walter Roberson
Walter Roberson on 5 Dec 2012
surf(FirstZ)
hold on
surf(SecondZ)
  2 Comments
ME
ME on 5 Dec 2012
Sorry for such a newbie question. However, I've an additional comment on this issue. Would it be possible to have a different color scale for the 2 surfaces or to set some transparency in order to better distinguish them?
Walter Roberson
Walter Roberson on 5 Dec 2012
You can set the AlphaData property when you call surf() . See http://www.mathworks.com/help/matlab/ref/surface_props.html
surf(FirstZ, 'AlphaData', 0.8*ones(size(FirstZ)))
to set it to all 0.8

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!