How to set surface transparency based on value?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi,
I am plotting a surface and I want to add transparancy based upon the value of z2. Namely, if z2 = max(z2), the transparency is 0 and when z2 = min(z2), the transparency is 1. How can I do this?
h=surf(x2,y2,z2);
set(h, 'EdgeColor','none', 'FaceColor','interp', 'FaceLighting','gouraud')
댓글 수: 0
답변 (1개)
SlipperyGnome
2022년 7월 10일
You can go through the following related links for a better understanding of this- https://www.mathworks.com/matlabcentral/answers/30776-how-to-make-the-surface-plot-transparent
Hope it helps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!