![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/290158/image.png)
How to make fsurf a solid colored surface with no shade? and make the surface tranparent.
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Zeynab Mousavikhamene
le 4 Mai 2020
Réponse apportée : Mehmed Saad
le 4 Mai 2020
I am using fsurf to plot a surface. I wana make the whole surface a solid color and want to make the surface transparent. How can I do that?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/290155/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/290155/image.jpeg)
figure
syms x1 x2
fsurf((B(1)*x1+B(2)*x2+b(1))/-B(3),'EdgeColor','none')
0 commentaires
Réponse acceptée
Mehmed Saad
le 4 Mai 2020
By default FaceColor is set to interp. Change it to your favourite color.
For tranparency use FaceAlpha
figure
syms x1 x2
fsurf((B(1)*x1+B(2)*x2+b(1))/-B(3),'EdgeColor','none',...
'FaceColor','r','FaceAlpha',0.5);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/290158/image.png)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!