fsolve problem-I must be missing something
Mostrar comentarios más antiguos
I am trying to fit two vectors A and L using the function:
function F = onesite(x,A,L)
Amax=x(1)
Kd=x(2)
F=A-(Amax*Kd*(L-(A/Amax))/(1+Kd*(L-(A/Amax))))
end
to find the best fit scalars Amax and Kd by defining the start points for x:
x=[1:10]
then using fsolve to find the optimal values
f=fsolve(@onesite,x,A,L)
Despite defining A,L, and the start points for x, I get the error:
Error using onesite (line 4)
Not enough input arguments.
What am i missing here?
Thanks
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Solver Outputs and Iterative Display en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!