Unable to access Stats toolbox functions
3 次查看(过去 30 天)
显示 更早的评论
Hi everyone, I'm a bit perplexed.
I'm not able to use statistics functions. I'm seeing things like this:
>> help anova
anova not found.
Use the Help browser search field to search the documentation, or
type "help help" for help command options, such as help for methods.
>> help ranova
ranova not found.
Use the Help browser search field to search the documentation, or
type "help help" for help command options, such as help for methods.
Yet I have the Stats toolbox installed and it is in the search path.
>> ver
----------------------------------------------------------------------------------------------------
MATLAB Version: 9.0.0.341360 (R2016a)
MATLAB License Number: ••••••
Operating System: Microsoft Windows 7 Home Premium Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
----------------------------------------------------------------------------------------------------
MATLAB Version 9.0 (R2016a)
Signal Processing Toolbox Version 7.2 (R2016a)
Statistics and Machine Learning Toolbox Version 10.2 (R2016a)
Wavelet Toolbox Version 4.16 (R2016a)
However, when I try
>> doc anova
The interactive help comes up just fine!
If anyone knows why this is happening and what I can do about it, please let me know!
Thanks in advance.
0 个评论
回答(2 个)
Tom Lane
2016-6-24
The toolbox has functions anova1, anova2, anovan, and rmanova among others. It does not have functions anova or ranova.
However, there are objects that have methods by these names. You can use anova on a LinearModel, or ranova on a RepeatedMeasuresModel. It looks like when you ask for "doc" using these names, the methods for these objects come up.
0 个评论
Image Analyst
2016-5-24
Make a new script file and run this and tell us what it says
% Check that user has the Toolbox installed and licensed.
hasToolbox = license('test','Statistics_toolbox')
if ~hasToolbox
% User does not have the toolbox installed.
message = sprintf('Sorry, but you do not seem to have a license for the Statistics and Machine Learning Toolbox.\nDo you want to try to continue anyway?');
reply = questdlg(message, 'Toolbox missing', 'Yes', 'No', 'Yes');
if strcmpi(reply, 'No')
% User said No, so exit.
return;
end
end
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Analysis of Variance and Covariance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!