From 80949d3bd49bd4456fb491427ebc4a6a4f0619e0 Mon Sep 17 00:00:00 2001 From: "lion.chan" Date: Wed, 24 Aug 2022 19:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lion.chan --- Algorithm/Statistics/高斯分布.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Algorithm/Statistics/高斯分布.md b/Algorithm/Statistics/高斯分布.md index 86b300c..e7f2074 100644 --- a/Algorithm/Statistics/高斯分布.md +++ b/Algorithm/Statistics/高斯分布.md @@ -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 图像绘制程序: ```m +% A=1 +% σx=σy=1 +% x0=y0=0 x1 = [0:0.1:10]; y1 = [0:0.1:10]; [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); ```