matlab中regress怎么用?参数是什么含义?

来源:百度知道 编辑:UC知道 时间:2024/06/05 02:38:01

REGRESS Multiple linear regression using least squares.
B = REGRESS(Y,X) returns the vector B of regression coefficients in the
linear model Y = X*B. X is an n-by-p design matrix, with rows
corresponding to observations and columns to predictor variables. Y is
an n-by-1 vector of response observations.

REGRESS是用最小二乘法进行线性回归。
B是回归系数,Y是因变量,X是自变量数组。