MATLAB Answers

mr mo
0

How to calculate Tangent of angles in degree

Asked by mr mo
on 8 Nov 2017
Latest activity Commented on by mr mo
on 8 Nov 2017
Hi. I have a vector of angles in degrees. My question is how can I calculate the Tangent of these angles ?
Angles = [ 40 45 41 43 80 70 60]
Thanks for your help.

  0 Comments

Sign in to comment.

1 Answer

Answer by Star Strider
on 8 Nov 2017
 Accepted Answer

Use the tand function:
Angles = [ 40 45 41 43 80 70 60];
TandAngles = tand(Angles)
or:
TanAngles = tan(Angles * pi/180)

  5 Comments

Also I want to use the atan command in Matlab. How can I have outputs in form of degree ? Thanks a lot.
Thanks a lot.

Sign in to comment.