Use of regress function in Matlab version 7.11.0 R2010b

8 次查看(过去 30 天)
Hi,
I had been using the regress function without any problems in the 2007 version of Matlab running on Windows Vista.
Recently our university upgraded to both Windows 7 and Matlab 2010 at the same time, and now I can't get the regress function to work (I have made no changes to the m-file).
The error message displayed when I try and run the function is:
??? Undefined function or method 'regress' for input arguments of type 'double'.
I have tried changing the input arguments to single, but the same error message is shown with 'single' instead of 'double'
Any ideas on why I am getting this error measage?
Thanks

采纳的回答

Walter Roberson
Walter Roberson 2011-7-12
Which MATLAB release are you using? Stats Toolbox 7.4 is for R2010b, with Stats Toolbox 7.3 being for R2010a.
Also, the fact that something shows up in "ver" does not always mean that it is licensed for you to use.
You should also check with
which -all regress
and ensure that it shows up on your path.
Also, you might need to use
rehash toolbox

更多回答(2 个)

Oleg Komarov
Oleg Komarov 2011-7-12
type ver to check that the statistics toolbox is installed
  2 个评论
Oleg Komarov
Oleg Komarov 2011-7-12
try to type doc regress, if nothing comes up then try rehash toolbox, if still doesn't work you probably need to re-check the permissions/reinstall the toolbox.

请先登录,再进行评论。


Fangjun Jiang
Fangjun Jiang 2011-7-12
I think function regress() is in the Statistics Toolbox. By any change your new version of the MATLAB software suite no longer has that toolbox anymore? Type ver to check.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by