fsolve does not work

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.

답변 (1개)

Walter Roberson
Walter Roberson 2012년 9월 28일

0 개 추천

fsolve(@(x) f(x(1),x(2), [0;0])

카테고리

도움말 센터File Exchange에서 Audio Processing Algorithm Design에 대해 자세히 알아보기

태그

질문:

2012년 9월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by