slope
Slope of a linear regression line.
Syntax
Section titled “Syntax”v = slope(knownys, knownxs)Description
Section titled “Description”Returns the slope of the least-squares regression line through (x, y) points — the b1 coefficient in y = b0 + b1*x.
Example
Section titled “Example”slope([2 4 6 8], [1 2 3 4]) % 2