Creating Intersecting Surface Plots

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!

 채택된 답변

Walter Roberson
Walter Roberson 2012년 12월 5일

0 개 추천

surf(FirstZ)
hold on
surf(SecondZ)

댓글 수: 2

ME
ME 2012년 12월 5일
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?
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

ME
2012년 12월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by