Error: Undefined function or method 'gamfit' for input arguments of type 'double'
Afficher commentaires plus anciens
Function gamfit.m is a simple Statistics toolbox function that only requires a data vector as input and attempts to fit a gamma distribution to the data. I assume that 'double' refers to double precision? All variables are 'double' by default. Why am I getting this error, and how can I get around it?
Réponses (1)
Wayne King
le 22 Jan 2013
Modifié(e) : Wayne King
le 22 Jan 2013
This most likely means either you do not have the Statistics Toolbox installed, or you are using a version of the Statistics Toolbox prior to the introduction of gamfit.m
Enter
>>ver
to see what toolboxes you have installed.
If you see Statistics Toolbox in that list and you are using a networked configuration, enter
>>license('test','statistics_toolbox')
to see if a 1 is returned.
The error message actually means that MATLAB cannot find gamfit.m and the data type of the input argument is not relevant here.
3 commentaires
David
le 23 Jan 2013
Walter Roberson
le 23 Jan 2013
Did you try the license 'test' that Wayne showed?
If you have the software installed but not licensed then you would be able to see the help information but not run it.
Try at the command line
which -all gamfit
Tom Lane
le 24 Jan 2013
Sometimes it's beneficial also to type
rehash toolbox
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!