plotgauss.m

来自「Mathematical Methods by Moor n Stiling.」· M 代码 · 共 19 行

M
19
字号
% Plot the Gaussian function
% Copyright 1999 by Todd K. Moon

clf

subplot(3,3,1)
x = -4:.2:4;
sigma = 1;
mu = 0;
fx = 1/sqrt(2*pi*sigma)*exp(-1/(2*sigma^2)*(x-mu).^2);
plot(x,fx)
xlabel('w')
ylabel('f_w(w)')
axis([-4 4 0 .5])
set(gca,'XTick',[-4 -2 0 2 4])
set(gca,'YTick',[0 .1 .2 .3 .4])
print -dps ../pictures/plotgauss.ps
print -deps ../pictures/plotgauss.eps

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?