Write a function that takes the x- and y-coordinates of three points describing the vertices of a triangle and returns the coordinates of the endpoints of the altitudes of the triangle as well as the coordinates of the orthocenter. The coordinates of the endpoints should be in the order of the corresponding vertices, and the function should work when one of the angles is obtuse.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers8
Suggested Problems
-
Number of 1s in the Binary Representation of a Number
491 Solvers
-
247 Solvers
-
Back to basics 23 - Triangular matrix
1154 Solvers
-
Convert hex color specification to MATLAB RGB
261 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
406 Solvers
More from this Author330
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!