MATLAB Answers

How to calculate Tangent of angles in degree

110 views (last 30 days)
mr mo
mr mo on 8 Nov 2017
Commented: 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.

Accepted Answer

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

  5 Comments

Show 2 older comments
mr mo
mr mo on 8 Nov 2017
Also I want to use the atan command in Matlab. How can I have outputs in form of degree ? Thanks a lot.

Sign in to comment.

More Answers (0)