Input argument
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Walter Roberson
il 2 Nov 2011
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?
Vedere anche
Categorie
Scopri di più su Nonlinear Optimization in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!