Plane Fitting and Normal Calculation

Given a set of x,y,z coordinates, find the best planar fit.
3,9K descargas
Actualizado 26 ago 2013

Ver licencia

Given a set of x,y,z coordinates, find the best planar fit to the points via a least squares regression. Testing script "t_fitNormal" is also included to verify functionality and demonstrate usage.

Sample Call
> data = rand(50,3)*100;
> data(:,3) = data(:,1) * .4 + data(:,2) * .6 + rand(50,1);
> n = fitNormal(data,1)

Citar como

Dan Couture (2024). Plane Fitting and Normal Calculation (https://www.mathworks.com/matlabcentral/fileexchange/37775-plane-fitting-and-normal-calculation), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2007a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Linear and Nonlinear Regression en Help Center y MATLAB Answers.
Agradecimientos

Inspiración para: Adjust Plane to Given Normal, Plane fit, threepoints2planez

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.4.0.0

Graph scaling to the data provided

1.3.0.0

Use residuals to determine which of the fits is best and allow for data that is not perfectly planar.

1.0.0.0