Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DEGREE 9
- c = polyfit(x, y, 9)
- for i=1:11
- 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
- end
- v =
- Columns 1 through 8
- 0.0564 0.1680 0.2763 0.3793 0.4752 0.5625 0.6399 0.7058
- Columns 9 through 11
- 0.7586 0.7955 0.8119
- DEGREE 7
- v =
- Columns 1 through 8
- 0.0564 0.1680 0.2765 0.3800 0.4772 0.5677 0.6516 0.7307
- Columns 9 through 11
- 0.8079 0.8876 0.9766
- DEGREE 5
- v =
- Columns 1 through 8
- 0.0563 0.1675 0.2746 0.3750 0.4659 0.5447 0.6089 0.6559
- Columns 9 through 11
- 0.6833 0.6887 0.6698
- DEGREE 3
- v =
- Columns 1 through 8
- 0.0583 0.1746 0.2896 0.4024 0.5122 0.6181 0.7193 0.8148
- Columns 9 through 11
- 0.9039 0.9857 1.0593
- DEGREE 1
- v =
- Columns 1 through 8
- 0.0427 0.1280 0.2133 0.2986 0.3839 0.4692 0.5545 0.6398
- Columns 9 through 11
- 0.7251 0.8104 0.8957
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement