我有一组来自现实世界的点云,我想在它们上面拟合一个曲面并计算出这些点的曲线。由于这些点是来自真实世界的,所以它们的x、y和z之间的差异很大。当我使用这里的代码时,在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.
这种方法适用于在这些点上拟合表面或平滑曲线吗?