planefit

A function to fit a plane to a 3D point cloud.
4K Downloads
Updated 24 Apr 2012

View License

Given the equation of a plane as z = a*x + b*y + c, planefit, executed as C = planefit(x,y,z), solves for the coeficients C = [a b c]. Planefit does nothing fancy, it simply sets up and lets MATLAB solve the least-squares problem to solve for the coefficients - a handy utility function.

Cite As

Val Schmidt (2024). planefit (https://www.mathworks.com/matlabcentral/fileexchange/36353-planefit), MATLAB Central File Exchange. Retrieved .

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

Inspired: threepoints2planez

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0