matlab二元三次方函数系数拟合
x=(1,2,3,4,5,6,7,8,9,10);y=(10,9,8,7,6,5,4,3,2,1);z=(11,22,33,44,55,66,77,88,99,00);
z=a1+a2*x+a3*x^2+a4*x^3+a5*x*y+a6*x*x*y+a7*x*y*y+a8*y+a9*y^2+a10*y^3;
形如上式的曲面拟合,x,y.z为实验数据点,拟合成三次方公式,一共十个系数(a1到a10)怎么求?真心找大神求matlab怎么写?