clear
clc
r=1+1.0.*randn(1,100) ;
hist(r,-4:.1:4);
hold on
x=-4:0.1:4;
y=gaussmf(x,[1 0]);%gaussmf(x,[σ,μ])
x = x+1;
plot(x,y,'r')
clear
clc
r=1+1.0.*randn(1,100) ;
hist(r,-4:.1:4);
hold on
x=-4:0.1:4;
y=gaussmf(x,[1 0]);%gaussmf(x,[σ,μ])
x = x+1;
plot(x,y,'r')