Input argument
3 次查看(过去 30 天)
显示 更早的评论
function y = f1(x)
% A univariate function with a simple zero
syms x
y = cos(x) - x;
r = fzero('f1', 0.5)
It gives the following error
Error in ==> oct3 at 5 r = fzero('f1', 0.5) >>
0 个评论
回答(2 个)
Walter Roberson
2011-11-2
Why is the error in the file oct3 when all you show us is the file f1 ?
What is the error message you are getting?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Nonlinear Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!