statistics toolbox functions not working - yes it is installed!

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!

 採用された回答

sonnymoon 42
sonnymoon 42 2011 年 7 月 20 日

1 投票

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.

その他の回答 (3 件)

Walter Roberson
Walter Roberson 2011 年 7 月 19 日

0 投票

As well as installing the software, you need a working license for that version of the Stats toolbox.
Sean de Wolski
Sean de Wolski 2011 年 7 月 19 日

0 投票

what does:
license('test','statistics_toolbox')
return?

2 件のコメント

sonnymoon 42
sonnymoon 42 2011 年 7 月 19 日
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 2011 年 7 月 19 日
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

サインインしてコメントする。

Donna Calu
Donna Calu 2016 年 10 月 26 日

0 投票

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 件のコメント

Walter Roberson
Walter Roberson 2016 年 10 月 26 日
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 2025 年 3 月 13 日
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?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2011 年 7 月 19 日

コメント済み:

2025 年 3 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by