SHARE
TWEET

Punto5

cardel Jul 29th, 2018 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top