How can I find solutions included in an interval ??

6 visualizaciones (últimos 30 días)
kamal kiki
kamal kiki el 18 de Mayo de 2012
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] ??

Respuesta aceptada

Walter Roberson
Walter Roberson el 18 de Mayo de 2012
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 comentario
kamal kiki
kamal kiki el 18 de Mayo de 2012
Thank you very much Walter Roberson.
Really the problem of sign difference is a big problem.
Is there any solution to that ???

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by