Evaluate zeros of a symbolic trigonometric function

Hi,
I'm trying to find the zeros for this symbolic function:
2*cos(x) + x*sin(x) -2 == 0
is there a way to do it in MatLab?
Many thanks

Answers (1)

Hi,
You can use ' solve' command to solve the equation.For more information on ' solve', please have a look at the following link: https://www.mathworks.com/help/symbolic/solve.html
You can also use ' fsolve' and ' fzero' to solve nonlinear equations.For more information please have a look at the following links:

Categories

Community Treasure Hunt

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

Start Hunting!