Input argument
7 ビュー (過去 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!