添加注释.

Signed-off-by: lion.chan <cy187lion@sina.com>
This commit is contained in:
lion.chan 2022-08-24 19:50:22 +08:00
parent 0dc70a7e0f
commit 80949d3bd4
1 changed files with 4 additions and 1 deletions

View File

@ -21,9 +21,12 @@ $$G(x,y)=Ae^{(-\frac{(x-x_0)^2}{2\sigma_x^2}+\frac{(y-y_0)^2}{2\sigma_y^2})}$$
Matlab 图像绘制程序: Matlab 图像绘制程序:
```m ```m
% A=1
% σx=σy=1
% x0=y0=0
x1 = [0:0.1:10]; x1 = [0:0.1:10];
y1 = [0:0.1:10]; y1 = [0:0.1:10];
[x,y] = meshgrid(x1,y1); [x,y] = meshgrid(x1,y1);
gxy = exp(-((x-5).*(x-5)+(y-5).*(y-5))/18); gxy = exp(-((x-5).*(x-5)+(y-5).*(y-5))/2);
surf(x, y, gxy); surf(x, y, gxy);
``` ```