开发者

How to find the angle of triangle in MATLAB

开发者 https://www.devze.com 2023-01-02 19:14 出处:网络
I\'m trying to find the angle of the the triangle in MATLAB. e.g. in the triangle开发者_StackOverflow社区 below, I want to find the angle of ABC (marked as black).

I'm trying to find the angle of the the triangle in MATLAB.

e.g. in the triangle开发者_StackOverflow社区 below, I want to find the angle of ABC (marked as black). if a = 40, b=50, How I can I find the angle (in degree) of ABC in MATLAB ?

How to find the angle of triangle in MATLAB

Thanks


In a right angled triangle, the tangent of of the acute angles can be find by taking the ratio of side opposed to the angle and side it shares with the right angle. These correspond to your values a and b. Then you have to take the inverse tangent of this ratio. This results in atan(a/b).

0

精彩评论

暂无评论...
验证码 换一张
取 消