Why do I receive the error message 'CDF must not have duplicate X values' while using the KTEST function from the Statistics Toolbox 6.0 (R2007a)?
Show older comments
I use the result of an ECDF computation as input for KTEST:
n=20;
[f,x] = ecdf(rand(1,n));
d=diff(sort(x));
[h,p] = kstest(rand(1,n),[x f], 0.05);
I receive the following error:
??? Error using ==> kstest at 138
CDF must not have duplicate X values.
Accepted Answer
More Answers (0)
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!