济南不干胶海报印刷:懂matlab的高人进,谢谢~~

来源:百度文库 编辑:高考问答 时间:2024/04/28 20:50:30
我使用regress函数估计参数时,输入参数中的x如果是个矩阵,那输入时要不要转置?

这个要看你原来的X是什么形式。

>> help regress

REGRESS Multiple linear regression using least squares.
b = REGRESS(y,X) 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).

注意“X is an nxp matrix, y is the nx1 vector of observations”
y是列向量,X的行数与y的行数相同

我身高180 谢谢