In an acute triangle, the three interior angles are acute, or smaller than 90 degrees. In an obtuse triangle, one angle is obtuse, or larger than 90 degrees. In a right triangle, one angle is a right angle, or equal to 90 degrees.
Write a function to classify a triangle as acute, obtuse, or right. The input to the function will be two 1x3 vectors, one with the x coordinates of the vertices of the triangle and the other with the y-coordinates. A small tolerance will likely be required in the cases of the right triangles.

Solution Stats

23 Solutions

11 Solvers

Last Solution submitted on Jun 06, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers11

Suggested Problems

More from this Author325

Problem Tags

Community Treasure Hunt

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

Start Hunting!