'statsfminbx' issue with user-defined factoran()

4 views (last 30 days)
Hi
While using
factoran(X,2) ; %where X <250*10>double
I keep getting the following error:
Undefined function 'statsfminbx' for input arguments of type 'cell'.
Error in factoran (line 269)
[Psi1, nll, lagrange, err, output] = ..
Could someone assist in debugging this please? as i do not see why this error occurs even after looking into line 269.
Thanks

Accepted Answer

Steven Lord
Steven Lord on 17 Aug 2015
Did you make a copy of factoran.m outside the Statistics and Machine Learning Toolbox directory? That's not going to work; delete that copy and use the copy inside the toolbox directory.
  1 Comment
Isma
Isma on 17 Aug 2015
fair enough, I could not figure out since the error message was leading me "somewhere else". I confirm that your suggestion does work. Thanks a lot.

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with Statistics and Machine Learning Toolbox 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!