How to I solve a equation?
Show older comments
I'm quite new to matlab and need to learn how to solve equations with matlab. I searched for help but I couldn't find much help or I didn't understand what was told to me.
For example I need to solve and equation:
x=1-cos(x)
I tryed FSOLVE, but didn't quite understand how it works.
My professor briefly mentioned something about using iteration method to solve the equation, but what He explained was quite complicated so I didn't understand much.
Accepted Answer
More Answers (1)
fzero(@(x) 1-cos(x)-x, [-2*pi,2*pi] )
Categories
Find more on Linear Algebra 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!