可用最小二乘法拟合。建议直接用matlab的拟合其中x,y,Z的值都是给出的,
Zx
y020406080100
0-2.3-3.2-3.3-4.1-3.8-2.9
50-1.2-3.1-3.5-4.2-3.9-2.8
100-2.6-3-3.6-4.1-3.9-2.3
150-2.6-2.9-3.7-4-3.5-2.2
200-1.6-3.2-3.8-3.9-3.6-1.9
250-1.6-3.3-3.9-4.3-3.8-1.9
300-2.3-2.9-4-3.9-3.7-1.7
麻烦高手写出具体的编程啊,谢谢~
问题补充:
不好意思x=[020406080100]
y=[050100150200250300]
z=[-2.3-3.2-3.3-4.1-3.8-2.9;-1.2-3.1-3.5-4.2-3.9-2.8;-2.6-3-3.6-4.1-3.9-2.3;-2.6-2.9-3.7-4-3.5-2.2;-1.6-3.2-3.8-3.9-3.6-1.9;-1.6-3.3-3.9-4.3-3.8-1.9;-2.3-2.9-4-3.9-3.7-1.7]
拟合成z=f(x,y)=a20x2+a02y2+a11xy+a10x+a01y+a00的形式
谢谢~