Plane Fitting and Normal Calculation

版本 1.4.0.0 (36.0 KB) 作者: Dan Couture
Given a set of x,y,z coordinates, find the best planar fit.
3.9K 次下载
更新时间 2013/8/26

查看许可证

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)

引用格式

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

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Linear and Nonlinear Regression 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
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