function plotGauss1D(mu,sg) x=(mu-5*sg):0.01:(mu+5*sg); y=(1/sqrt(2*pi*sg^2))*exp(-(1/(2*sg^2))*(x-mu).^2); plot(x,y,'y');