【发布时间】:2023-03-19 08:28:01
【问题描述】:
我有一个来自现实世界的点云,我想在它们上面拟合一个曲面并计算点的曲线(!)。 因为点在现实世界中,所以点的 x、y 和 z 之间的差异幅度非常大,当我使用 here 中的代码时,我在 matlab 中遇到以下错误:
Warning: Rank deficient, rank = 2, tol = 7.9630e-007.
这意味着我的数据条件不好。 我的一些数据是:
32512032.3900000 5401399.69000000 347.030000000000
32512033.1400000 5401399.79000000 346.920000000000
32512036.3000000 5401399.62000000 346.840000000000
32512037.3900000 5401399.95000000 346.870000000000
32512034.4800000 5401400 346.930000000000
32512035.6000000 5401400.05000000 346.950000000000
32512036.6900000 5401400.38000000 346.980000000000
32512037.9600000 5401400.30000000 346.910000000000
32512033.7600000 5401400.42000000 346.880000000000
32512034.8700000 5401400.48000000 346.960000000000
我也在 matlab 中使用fit 公式。
sf = fit( [x, y], z, 'poly23');
看到同样的错误:
Warning: Equation is badly conditioned. Remove repeated data points
or try centering and scaling.
是否有一种方法可以在此类点上拟合曲面或平滑曲线?
【问题讨论】:
标签: matlab curve-fitting curve