How to color Gaussian 3D plot with shiny texture?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!