Find theta by cos(theta) and sin(theta).

7 views (last 30 days)
I have values of cos(theta) and sin(theta) and I want to calculate the value of theta. Because of the return value of asind is from -pi/2 to pi/2, I get two different values when I use acosd(cos(theta)) and asind(sin(theta)). what should I do?

Accepted Answer

Matt J
Matt J on 29 Sep 2021
Edited: Matt J on 29 Sep 2021
theta=37;
atan2d(sind(theta),cosd(theta))
ans = 37
  2 Comments
Matt J
Matt J on 29 Sep 2021
You're welcome, but please Accept-click the answer to indicate that it resolved your question.

Sign in to comment.

More Answers (0)

Categories

Find more on Trigonometry 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!