kstest2 - Undefined function 'kstest2' for input arguments of type 'double'.

Dear I have two vectors ("ano" and "sem") with 31132 data in each. Did data entry, but when I try to use the function kstest2 get an error:
>> H = kstest2 (ano, sem) Undefined function 'kstest2' for input arguments of type 'double'.
Had some guidance about?
Thanks,

 Accepted Answer

Joao - the kstest2 function is part of the Statistics Toolbox. Do you have it installed? In the Command Window type
ver
to see which version of MATLAB you have and which toolboxes you have. If you don't see the Statistics Toolbox, then you need to purchase it. If you do see it, then type the following in the Command Window
which -all kstest2
to see where in the MATLAB search path this function can be found (if at all). What do you observe?

1 Comment

George, Thank you for the answer. I do not have the Statistics Toolbox installed. I believe that it would be interesting if the information came at begin in the explanation about the function in the respective help file.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!