How can I find solutions included in an interval ??

조회 수: 2 (최근 30일)
kamal kiki
kamal kiki 2012년 5월 18일
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에서 Mathematics and Optimization에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by