I believe you need Lilliefors test. The Kolmogorov-Smirnov test uses a completely specified distribution, so in your case, you need to know exactly which normal distribution you're testing against (pre-specified values of mean and variance). Kolmogorov-Smirnov does not take into account the uncertainty involved in estimating the mean and variance. This is the issue that Lilliefors addressed in his paper. From the abstract:
The standard tables used for the Kolmogorov-Smirnov test are valid when testing whether a set of observations are from a completely-specified continuous distribution. If one or more parameters must be estimated from the sample then the tables are no longer valid.
See also the Wikipedia article for a summary. The "nortest" package in R has the function lillie.test()
to perform a Lilliefors test. I don't use Matlab, but from a quick Google search it looks there is a lillietest(x)
function from here.
By the way, you might be interested in this discussion where it's discussed when (and if) normality testing is really appropriate/useful or not.