How to set surface transparency based on value?

조회 수: 3(최근 30일)
Yoni Verhaegen -WE-1718-
Yoni Verhaegen -WE-1718- 2022년 7월 10일
답변: SlipperyGnome 2022년 7월 10일
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?
set(h, 'EdgeColor','none', 'FaceColor','interp', 'FaceLighting','gouraud')


SlipperyGnome 2022년 7월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by