Undefined function or method 'fprefcnchk'

Hi all,
I am attempting to use a function fitting script provided by a coleague (to fit log-normal fits to data). This script was likely developed in a version of Matlab prior to 7 whilst I am using R2008a. When I run the script I come across an error which I can find very little information on across the web- I fear it may be a depreciated function from either the optimise or statisitics toolbox (both of which I have). In detail the error and usage is as follows:
??? Undefined function or method 'fprefcnchk' for input arguments of type
'char'.
Error in ==> alter at 207
[funfcn, msg] =
fprefcnchk(FUN,'fmincon',length(varargin),gradflag,hessflag);
Error in ==> fitting_3 at 23
[Estimates]=alter('lognorm3',Starting,[], [],[],[],
lowerbounds,upperbounds,[], options,t,Data) ;
Any advice or help would be great.

답변 (1개)

Walter Roberson
Walter Roberson 2013년 1월 28일

0 개 추천

At some point at least, it was in the optimization toolbox.
It looks to me as if "alter" might be a user-written function rather than something provided by Mathworks. I suggest you try
edit alter
and look at the beginning for copyrights and such, and possibly for comments saying something like, "this was adapted from..."

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2013년 1월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by