how to assign angle

2 views (last 30 days)
Offroad Jeep
Offroad Jeep on 14 May 2016
Commented: Image Analyst on 14 May 2016
Hi to all I am fine and hoping for the same. I want to take cos(theta) of the angle but for a = 1 and b = 1 angle should be 0 and for a = 1 and b = -1 it should be 180. The result should be in matrix form again. File attached.
Regards

Accepted Answer

Image Analyst
Image Analyst on 14 May 2016
You do not multiply a and b by the cosine. You multiply a and b by pi and put it inside the cosine, cos(), OR multiply by 180 and put inside cosd(). See if that hint can help you. meshgrid() may also help.
  2 Comments
Image Analyst
Image Analyst on 14 May 2016
So? Just use b*pi and you're all set.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!