statistics toolbox functions not working - yes it is installed!

11 views (last 30 days)
I get an error "Undefined function or method 'function name' for input arguments of type 'double'." whenever I try to access a function in the statistics toolbox such as nanmean, iqr, etc.
I typed ver into the command window and it says I have the statistical toolbox version 7.5 installed (latest version up to date).
I am running Matlab version 7.12 release R2011a. Seems from this forum others are having similar problems. This used to work on my older version of Matlab just fine. May have to install the old version...pain!

Accepted Answer

sonnymoon 42
sonnymoon 42 on 20 Jul 2011
This issue has been solved. The University has 1 license file that is stored on a server. But each Matlab program needs to have a pointer to that license file. The license.dat or network.lic files in your Matlab directory are not enough (or not useful) if you are using a university owned license.
I had to add a new "environment variable" to my windows OS called "MLM_LICENSE_FILE" that pointed to the location of the actual license file on the university server. On Windows 2010 Go to "Computer" select "System Properties", "Advanced", and click on "Environment Variables", add a new variable called "MLM_LICENSE_FILE" with the contents pointing to the server on which the license is stored (need to get this from your university). I added both a user variable and a system variable as it was unclear which was necessary.

More Answers (3)

Walter Roberson
Walter Roberson on 19 Jul 2011
As well as installing the software, you need a working license for that version of the Stats toolbox.

Sean de Wolski
Sean de Wolski on 19 Jul 2011
what does:
license('test','statistics_toolbox')
return?
  2 Comments
sonnymoon 42
sonnymoon 42 on 19 Jul 2011
returns a 0. However, my university insists we have the license for it, so perhaps the new version wasn't installed correctly. Now they want me to start typing commands while they "watch the network"...
sonnymoon 42
sonnymoon 42 on 19 Jul 2011
I should mention the IT folks said I should delete the network.lic file and the license.dat files. The latter I couldn't find, but I moved the network.lic file out of the Matlab directory. Still didn't help

Sign in to comment.


Donna Calu
Donna Calu on 26 Oct 2016
I have the same problem, but it is personal not institute licence. I typed in license('test','statistics_toolbox') and it returned a 1. What should I try next?
  2 Comments
Walter Roberson
Walter Roberson on 26 Oct 2016
Which MATLAB version are you using?
If you ask it
which -all normrnd
what does it output?
What is shown for
dir(toolboxdir('stats'))
Lauren
Lauren on 13 Mar 2025
I am having the same issue. When I input the first line of this code I get the output
>> which -all normrnd
'normrnd' not found.
When I input the second line I get
>> dir(toolboxdir('stats'))
. bayesoptim builtins distributed featlearn incremental pipeline stats timeseries
.. bigdata classreg doe gpu livetasks responsible statsdata
anomaly blocks clustering eml hypothesis mlearnapps semisupervised synthesis
I really don't know how to fix this. Do you know any more on this?

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing 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!