北京西单有几个商场:matlab如何 曲面拟合

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/05 23:48:09
用matlab如何 曲面拟合??

如:知道一组数据X,Y,Z
X,Y,Z为相等数目的矩阵
如何:知道任意X,Y,求 Z

用regress函数吧。
REGRESS(y,X),其中,y就是你的Z,X就是你的X和Y。

REGRESS Multiple linear regression using least squares.
b = returns the vector of regression coefficients, b,
in the linear model y = Xb, (X is an nxp matrix, y is the nx1
vector of observations).
实在不行,就把你的数据贴出来,让大伙看看。

不太明白你的意思,说详细点吧