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.

Answers (1)

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..."

Categories

Asked:

on 27 Jan 2013

Community Treasure Hunt

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

Start Hunting!