Plane Fitting and Normal Calculation
Versión 1.4.0.0 (36 KB) por
Dan Couture
Given a set of x,y,z coordinates, find the best planar fit.
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 (2026). Plane Fitting and Normal Calculation (https://es.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 LinuxCategorías
Más información sobre Linear and Nonlinear Regression en Help Center y MATLAB Answers.
Etiquetas
Agradecimientos
Inspiración para: Adjust Plane to Given Normal, Plane fit, threepoints2planez
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
