Model definition and initial values for model coefficients must be provided.

4 views (last 30 days)
Hello all,
I have the following error, "Model definition and initial values for model coefficients must be provided.", when I run a non-linear curve fit equation into MATLAB
My script code is as follows:
X = [R75X R75Y];
modelfun = @(b,x)((b(1)*x.^b(2))/(0.25*b(3)-x));
beta0 = [-10^-10 3 30];
mdl=NonLinearModel.fit(X,modelfun,beta0)
R75X and R75Y are both 83 X 1 sets of x and y coordinates respectivelty for each data point.
I have toyed around with the code a little, but it won't budge.
Any ideas?

Answers (0)

Community Treasure Hunt

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

Start Hunting!