image thumbnail


version (1.79 KB) by Val Schmidt
A function to calculate the distance from a point to a plane.


Updated 25 Apr 2012

View License

Given a point in 3D space, and a plane parameterized by its coefficients (C = [a b c] where z = a*x + b*y + c), dist2plane will calculate the distance from the point to the plane along the normal.

Cite As

Val Schmidt (2022). dist2plane (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!