Given the [x,y,z] coordinates for the three points pa, pb, and pc, return true if the test point pc is on the line segment with endpoints pa and pb.

pc is on the line segment if it lies at one of the end points.

Solution Stats

84 Solutions

21 Solvers

Last Solution submitted on May 28, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers21

Suggested Problems

Problem Tags

Community Treasure Hunt

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

Start Hunting!