fsolve does not work

15 Ansichten (letzte 30 Tage)
pemfir
pemfir am 28 Sep. 2012
i get the following error after running this:
f = @(k1,k2) k1+k2
fsolve(f,[0; 0])
-----------------------------------
Input argument "k2" is undefined.
Error in ==> @(k1,k2)k1+k2
Error in ==> fsolve at 248 fuser = feval(funfcn{3},x,varargin{:});
Caused by: Failure in initial user-supplied objective function evaluation. FSOLVE cannot continue.

Antworten (1)

Walter Roberson
Walter Roberson am 28 Sep. 2012
fsolve(@(x) f(x(1),x(2), [0;0])

Kategorien

Mehr zu Audio Processing Algorithm Design finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by