fsolve(@(x) f(x(1),x(2), [0;0])
fsolve does not work
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Oil, Gas & Petrochemical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!