Advertisement
cardel

Punto5

Jul 29th, 2018
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.35 KB | None | 0 0
  1. x = [0 1 2 3 4 5]';
  2. y = [2.1 7.7 13.6 25.1 40.9 61.1]';
  3. [a, r2] = regresionPolinomial(x, y, 2)
  4.  
  5.  r2  =
  6.  
  7.    0.998904
  8.  
  9.  a  =
  10.  
  11.    2.7785714
  12.    1.5492857
  13.    2.0107143
  14.  
  15. x = [0 1 2 3 4 5]';
  16. y = [2.1 7.7 13.6 27.2 40.9 61.1]';
  17. [a, r2] = regresionPolinomial(x, y, 2)
  18.  
  19.  r2  =
  20.  
  21.    0.9985094
  22.  
  23.  a  =
  24.  
  25.    2.4785714
  26.    2.3592857
  27.    1.8607143
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement