How to use polynomial to describe this?

29 Views Asked by At

I hava a stupid question. I would like to use a 7$^{th}$ order Polynomial to describe this figure. But if I use the matlab function $polyfit(x,y,7)$, Runge's phenomenon will come up. Currently I have no idea to solve that, anybody has good idea about that? Thanks!

enter image description here