Problem 2915. Matlab Basics II - Find the roots of a function
Write a function that finds where a curve crosses zero (the x-axis) to two decimal places
Example:
![](http://s14.postimg.org/vibfltgyl/cody2.png)
output:
[0 ; 1.13 ; -0.53]
Solution Stats
Problem Comments
-
1 Comment
Jihye Sofia Seo
on 11 Feb 2017
The ordering of roots in test case:
need to make it irrelevant (use set)
or sort in particular order (use sort)
Solution Comments
Show commentsProblem Recent Solvers88
Suggested Problems
-
40764 Solvers
-
2953 Solvers
-
17049 Solvers
-
Who knows the last digit of pi?
656 Solvers
-
Rounding off numbers to n decimals
4361 Solvers
More from this Author28
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!