%disnorm.m
%distribuzione di Gauss
figure(1);
clf reset;
clear;
s=[0.5 1.0 2.0]
str=['\sigma=0.5';'\sigma=1.0';'\sigma=2.0']
figure(1);
hold on
n=6;
x=[-n:0.1:n];
for j=1:3
	y(j,:)=1/(s(j)*sqrt(2*pi))*exp(-x.^2/(2*s(j)^2));
end
plot(x,y(1,:),'-',x,y(2,:),'--',x,y(3,:),':')
axis([-n n 0 1]);
xlabel('x')
ylabel('\rho(x)')
text(0.9,.55,str(1,:))
text(1.8,.35,str(2,:))
text(2.7,.15,str(3,:))
hold off