x = chi2inv(0.95,10)
x =
18.3070
I used to work for me but it doesnt work on my new pc which has MATLAB R2008b
when i tried to make function chi11.m and analzye the problem it prompted as
>> x = chi2inv(0.95,10)
??? Undefined function or method 'chi2inv' for input arguments of type 'double'.
>> x = chi11(0.95,10)
??? Undefined function or method 'distchck' for input arguments of type 'double'.
can someone help me with this ?
Regards
Hi Abdul, Are you sure you have the Statistics Toolbox installed on your new PC?
Wayne
Does the following command return a 1 for you:
license('test','statistics_toolbox')
Wayne
I have got the same problem!
license('test','statistics_toolbox') = 1 for me and I also tried to uninstall and reinstall Matlab, of course with statistic toolbox marked for installation. But nothing I did helped. The funny thing is, that not even the help contains any info about the missing statistic functions, so I guess it is not installed? But how to verify that, and more importantly, how to install it??
Thanks alot for your time!
In the case of the statistics toolbox the old path for me was "matlabroot,'\toolbox\stats;'" while the correct new path would have been "matlabroot,'\toolbox\stats\stats;'".
So the trick is to change that in "pathdef.m" and to do a "rehash toolboxcache" command and then restart MATLAB. Problem solved.