Find angles

버전 1.0.0.0 (3.78 KB) 작성자: KSSV
Find angles of triangle and/or quadrilateral when vertices are given.
다운로드 수: 821
업데이트 날짜: 2012/7/3

라이선스 보기

Three functions TRIangles, QUADangles and FIndAngles are given to find the angles of triangle and quadrilateral when vertices are known. TRIangles needs vertices in order 3X2 to calculate its three angles. QUADangles needs vertices in the order 4X2 to calculate its four angles. Vertices are input in anti-clock wise direction. The output is a row vector. When angles of many triangles and quadrilaterals are need to be evaluated, use FindAngles, it will take vertices and depending on the order of vertices gives angles.

The dot product between the vectors is used to calculate the angles.
theta = arc((a.b)/(|a|*|b|))

After finding the angles, make check of the angles using sum(angles). If vertices are of triangle sum will be 180, sum will be 360 for quadrilateral.

Thanks for Downloading. Don't forget to rate or comment.

인용 양식

KSSV (2024). Find angles (https://www.mathworks.com/matlabcentral/fileexchange/37389-find-angles), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0