How can I find solutions included in an interval ??
6 views (last 30 days)
Show older comments
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] ??
0 Comments
Accepted Answer
Walter Roberson
on 18 May 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.
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!