line calculations using its known coordinates

1 vue (au cours des 30 derniers jours)
Ahmed Galal
Ahmed Galal le 30 Mai 2021
Commenté : William Rose le 30 Mai 2021
Hello every one
How to calculate the angle between two lines (lines have known coordinates)
Thanks

Réponses (1)

William Rose
William Rose le 30 Mai 2021
Suppose slope of line 1 is a1 and slope of line 2 is a2. Then angle of line 1 relative to x axis is theta1=arctan(a1) and angle of line 2 is theta2=arctan(a2). Angle between lines is theta1-theta2.
  1 commentaire
William Rose
William Rose le 30 Mai 2021
In Matlab, the arctan function is atan().

Connectez-vous pour commenter.

Catégories

En savoir plus sur Cartesian Coordinate System Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by