matlab二次多项式曲面拟合?3603896.338 ,488554.991,8.2313589780.327 ,487658.722,8.4043596342.743 ,487810.764,8.3323599206.341,486605.780,8.2523593665.841,483924.860,8.2663590354.599,489991.618,8.4423588152.720,488971.778,8.439这是数据X,Y
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 07:10:18
matlab二次多项式曲面拟合?3603896.338 ,488554.991,8.2313589780.327 ,487658.722,8.4043596342.743 ,487810.764,8.3323599206.341,486605.780,8.2523593665.841,483924.860,8.2663590354.599,489991.618,8.4423588152.720,488971.778,8.439这是数据X,Y
matlab二次多项式曲面拟合?
3603896.338 ,488554.991,8.231
3589780.327 ,487658.722,8.404
3596342.743 ,487810.764,8.332
3599206.341,486605.780,8.252
3593665.841,483924.860,8.266
3590354.599,489991.618,8.442
3588152.720,488971.778,8.439
这是数据X,Y坐标和高程异常值.怎么进行拟合啊?下图是二次曲面拟合模型
这是模型
matlab二次多项式曲面拟合?3603896.338 ,488554.991,8.2313589780.327 ,487658.722,8.4043596342.743 ,487810.764,8.3323599206.341,486605.780,8.2523593665.841,483924.860,8.2663590354.599,489991.618,8.4423588152.720,488971.778,8.439这是数据X,Y
x=[3603896.338 ,3589780.327 ,3596342.743 ,3599206.341,3593665.841,3590354.599,3588152.720];
y=[488554.991 ,487658.722,487810.764,486605.780,483924.860,489991.618,488971.778];
plot(x,y)
pf=polyfit(x,y,2)
px=polyval(pf,x)
hold on
plot(x,px)