normfit
simply gives you the mu
and sigma
of the fitted normal pdf. From those you build that pdf with normpdf
. So the desired y
values for your input x
would be
y = normpdf(x,mu,sigma)
which you could plot with
hold on
plot(x,y,'ro')
Note that, with this procedure, the data lie exactly on the normal pdf, even if those data do not actually follow a normal distribution.