How to color Gaussian 3D plot with shiny texture?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
wndud77
el 12 de Feb. de 2024
Comentada: wndud77
el 12 de Feb. de 2024
Hi,
I tried to plot the Gaussian peak with Matlab.
From the wikimedia, I found the Matlab code for Gaussian like below:
https://commons.wikimedia.org/wiki/File:Gaussian_2d.png#file
[X, Y] = meshgrid(-30:.1:30, -30:.1:30);
Z = exp(-X.^2-Y.^2);
surf(X,Y,Z);
shading interp;
view(-56,56)
And this gave me the plot like below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1614761/image.png)
Is there any way to make this plot with shiny material like this?:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1614766/image.png)
Thanks in advance.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!