The aim is to find all the zeros of a function within an interval.
Input :
  • fcn : an anonymous function (@sin, @cos...)
  • lb : lower bound
  • ub :upper bound
Output :
  • output : vector with unique values for which the input function return zeroThe values must be sorted in ascending order.
Example
output = find_zeros(@sin,0,2*pi) will return :
output = [0.0000 3.1416 6.2832]
since the sinus function between [0 2pi] is zero for [0 pi 2pi]

Solution Stats

126 Solutions

25 Solvers

Last Solution submitted on May 26, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers25

Suggested Problems

More from this Author30

Community Treasure Hunt

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

Start Hunting!