How to I solve a equation?

1 次查看(过去 30 天)
Ron
Ron 2013-9-23
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.

采纳的回答

David Sanchez
David Sanchez 2013-9-23
Take a look at the following links and try to do their examples:
http://www2.math.umd.edu/~immortal/206/tutorial/SolvingEquations.shtml
http://www.mathworks.es/es/help/symbolic/solve.html
  1 个评论
Ron
Ron 2013-9-25
Thank you very much, the links you provided are very helpful!

请先登录,再进行评论。

更多回答(1 个)

Matt J
Matt J 2013-9-23
编辑:Matt J 2013-9-23
fzero(@(x) 1-cos(x)-x, [-2*pi,2*pi] )

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by