How to color Gaussian 3D plot with shiny texture?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!