Filter löschen
Filter löschen

how to assign angle

1 Ansicht (letzte 30 Tage)
Offroad Jeep
Offroad Jeep am 14 Mai 2016
Kommentiert: Image Analyst am 14 Mai 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

Akzeptierte Antwort

Image Analyst
Image Analyst am 14 Mai 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 Kommentare
Offroad Jeep
Offroad Jeep am 14 Mai 2016
I have just assumed a and b as in the prg my concern is for a = 1 and b =1 the angle should be 0 and for a = 1 and b=-1 angle should be 180 or it can be pi
Image Analyst
Image Analyst am 14 Mai 2016
So? Just use b*pi and you're all set.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Trigonometry finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by