Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = [0 1 2 3 4 5]';
- y = [2.1 7.7 13.6 25.1 40.9 61.1]';
- [a, r2] = regresionPolinomial(x, y, 2)
- r2 =
- 0.998904
- a =
- 2.7785714
- 1.5492857
- 2.0107143
- x = [0 1 2 3 4 5]';
- y = [2.1 7.7 13.6 27.2 40.9 61.1]';
- [a, r2] = regresionPolinomial(x, y, 2)
- r2 =
- 0.9985094
- a =
- 2.4785714
- 2.3592857
- 1.8607143
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement