> i used the function polyfit(). I found it is buggy.
> I test it with
> [p, value] = polyfit(x,y, 4);
> and i got strange results.
> Is a replacement for polyfit() aviable.
polyfit() returns the vector of coefficients of the lest square
polynomial of order "n". You should call polyval() afterwards: