function evalclusters from Statistics toolbox not found in matlab - matlab

I would like to use the function evalclusters from the statistics toolbox in matlab, but matlab is unable to find the function when I call it.
help evalclusters
returns 'evalclusters not found.'
The statistics toolbox is installed [license('test','statistics_toolbox') returns '1'].
Thanks!

evalclusters was added with Matlab 2013b and extended with 2014a, it is not available in Matlab 2013a.
In case upgrading Matlab is not an option, current Octave Statistics package includes it as well. (Open-Source alternative to Matlab which basically uses the same syntax)

Related

any Octave equivalent of fitdist?

The Statistics package for Octave doesn't have the fitdist function in it yet. I have I code from Matlab that I want to run in Octave and relies heavily on this function. How could I replace this function in Octave?
Thanks.

Matlab, an error after using fitctree function

I am trying to construct a decision tree. I tried using the fitctree function and wrote:
ctree = fitctree(TrainingX,TrainingY);
such that TrainingX is the input matrix and TrainingY is the target matrix. An error appears saying that:
Undefined function 'fitctree' for input arguments of type 'double'.
I don't know what is the problem and what should I do to solve it. Could you please help me?
The reason why it is undefined is because fitctree requires the Statistics Toolbox in MATLAB. If you don't have the Statistics Toolbox, you can't use this function and you're SOL. Sorry!
Even with the Statistics Toolbox, fitctree is only available for recent editions of MATLAB (R2014a+). Check the release notes on the Statistics Toolbox for more details: http://www.mathworks.com/help/stats/release-notes.html. Go to where R2014a is and fully expand out all of the facts by clicking on Expand All. Where you see "Functions for classification methods and clustering", you'll see an entry for fitctree there.
The only option would be to upgrade your version of MATLAB to at least R2014a or above.
Good luck!

using autocorr for different matlab versions

I'm trying to compute the autocorrelation of my timeseries. This work on my laptop with matlab R2011a, but not on my desktop with matlab R2013a. I read somewhere that the Signal Processing Toolbox needs to be installed, and that is the case on both of my computers. There seems to be no function at all called autocorr, but I can find it again on the matworks documentation for 2014b. I have the same problem with xcorr, although matlab seems to recognize the function ('help xcorr' works, 'help autocorr' not).
How can I fix this?

Is 'ols' function in Econometrics toolbox in MATLAB?

I am trying to run a code which calls the function OLS. reg=ols(y,X). I am getting an error saying that ols is an undefined function for input of type double. Is ols a function in the econometrics toolbox or do we create a separate ols function? I have checked the working directory and the toolbox is added to the path. I don't know what the problem is.
I don't have ols either and I have the econometrics toolbox. I'm guessing you are looking for some functions in File Exchange, most likely the Toolkit on Econometrics and Economics Teaching.

How to use lassoglm in matlab

I have this issue while using the lassoglm function in matlab. My matlab says that the statistics toolbox is installed. However, I couldn't see lassoglm function available in my matlab
Your Matlab version isn't recent enough.
It isn't there on my R2010a version. The documentation on the website is for 2012b.