How to set surface transparency based on value?

4 visualizaciones (últimos 30 días)
Yoni Verhaegen -WE-1718-
Yoni Verhaegen -WE-1718- el 10 de Jul. de 2022
Respondida: SlipperyGnome el 10 de Jul. de 2022
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')

Respuestas (1)

SlipperyGnome
SlipperyGnome el 10 de Jul. de 2022

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by