Polynomial fitting prob lem
Mostra commenti meno recenti
Hello,
Would anyone have an idea how to prevent these large peaks and troughs occurring at the edges of a polynomial fit?
x = -1:0.005:1;
y = rand(size(x));
polydegree = 15;
coeffs = polyfit(x, y, polydegree);
y = polyval(coeffs,x);
plot(x,y,'k')
1 Commento
Tom
il 28 Gen 2013
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Polynomials in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!