I am running a kstest on MATLAB. When I take the data directly, i.e. kstest(data), the result says that my data is non normal. However, if I use kstest((data-mean(data))/std(data)) it would come out as normal distribution.
What is the correct way of testing normality?