confusing error message: 'Not enough input arguments'?
Mostrar comentarios más antiguos
Having:
function [f] = Simple(x)
f = (x(1)-1).^2 + (x(2)-1).^2;
end
and running:
x = lsqnonlin(Simple, [2.0, 2.0])
I am getting:
Not enough input arguments.
Error in Simple (line 2)
f = (x(1)-1).^2 + (x(2)-1).^2;
2 f = (x(1)-1).^2 + (x(2)-1).^2;
What is going on here?
2 comentarios
Valeri Aronov
el 27 de Feb. de 2021
Star Strider
el 27 de Feb. de 2021
As always, my pleasure!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Time-Domain Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!