Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. DEGREE 9
  2.  
  3. c = polyfit(x, y, 9)
  4.  
  5. for i=1:11
  6. v(i) = c(1)*z(i)^9 + c(3)*z(i)^7 + c(5)*z(i)^5 + c(7)*z(i)^3 +c(9)*z(i)^1
  7. end
  8.  
  9. v =
  10.  
  11. Columns 1 through 8
  12.  
  13. 0.0564 0.1680 0.2763 0.3793 0.4752 0.5625 0.6399 0.7058
  14.  
  15. Columns 9 through 11
  16.  
  17. 0.7586 0.7955 0.8119
  18.  
  19. DEGREE 7
  20.  
  21. v =
  22.  
  23. Columns 1 through 8
  24.  
  25. 0.0564 0.1680 0.2765 0.3800 0.4772 0.5677 0.6516 0.7307
  26.  
  27. Columns 9 through 11
  28.  
  29. 0.8079 0.8876 0.9766
  30.  
  31. DEGREE 5
  32.  
  33. v =
  34.  
  35. Columns 1 through 8
  36.  
  37. 0.0563 0.1675 0.2746 0.3750 0.4659 0.5447 0.6089 0.6559
  38.  
  39. Columns 9 through 11
  40.  
  41. 0.6833 0.6887 0.6698
  42.  
  43. DEGREE 3
  44.  
  45.  
  46. v =
  47.  
  48. Columns 1 through 8
  49.  
  50. 0.0583 0.1746 0.2896 0.4024 0.5122 0.6181 0.7193 0.8148
  51.  
  52. Columns 9 through 11
  53.  
  54. 0.9039 0.9857 1.0593
  55.  
  56. DEGREE 1
  57.  
  58. v =
  59.  
  60. Columns 1 through 8
  61.  
  62. 0.0427 0.1280 0.2133 0.2986 0.3839 0.4692 0.5545 0.6398
  63.  
  64. Columns 9 through 11
  65.  
  66. 0.7251 0.8104 0.8957
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement