regress — regression coefficients of two variables
coefs=regress(x,y)
This function computes the regresion coefficients of two
variables x
and y
, both numerical vectors of
same number of elements n
. coefs=[a b]
be a
1x2 matrix such that Y=a+bX
will be the equation of
the ordinary least square approximation to our data.