How can I find solutions included in an interval ??

1 次查看(过去 30 天)
I am trying to solve an equation of one unknown Z using fsolve.
Let us say that the value of the guess for Z is 610 and that I am using the writing: fsolve(@eqns,610).
Which writing should I use to find only the solutions Z which are included in the interval [600 670] ??

采纳的回答

Walter Roberson
Walter Roberson 2012-5-18
fzero(@eqns, [600 670])
Notice that is fzero, not fsolve.
Warning: in order for fzero to work on an interval, the equation evaluated at the two endpoints must have different signs.
  1 个评论
kamal kiki
kamal kiki 2012-5-18
Thank you very much Walter Roberson.
Really the problem of sign difference is a big problem.
Is there any solution to that ???

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Optimization 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by