RosettaCodeData/Task/Polynomial-regression/Octave/polynomial-regression.octave

4 lines
97 B
Text
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
x = [0:10];
y = [1, 6, 17, 34, 57, 86, 121, 162, 209, 262, 321];
coeffs = polyfit(x, y, 2)