How to determine roots of a trigonometric equation like 2x-cosx-2=0 ?
5 views (last 30 days)
Show older comments
How to determine roots of a trigonometric equation like 2x-cosx-2=0 ?
0 Comments
Accepted Answer
Torsten
on 27 Jun 2016
fun=@(x)2*x-cos(x)-2;
x0=[0 2];
sol=fzero(fun,x0)
Best wishes
Torsten.
2 Comments
More Answers (0)
See Also
Categories
Find more on Particle & Nuclear Physics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!