Why my polynomial function is wavy
Afficher commentaires plus anciens
I work on biomechanical analysis of a jump landing. I use force plate and I would like to calculate the time to stabilisation. The calculation methods consist of fitting ground reaction force with an unbounded third-order polynomial. For that I used a polyfit and polyval functions (script below). Nevertheless, my fitting appears wavy (figure below) and doesn't match with examples in litterature...
Is it the good function for this application? Can I adjust this function to avoid wave?
Thanks you very much for your help!

x=0:0.0005:((length(STPRE1_vTTS_abs)-1)/2000);
x=x';
p=polyfit(x,STPRE1_vTTS_abs,3); %3rd order
v=polyval(p,x)
figure
plot(x,STPRE1_vTTS_abs,x,v)
yline(STPRE1_seuil_vTTS)
1 commentaire
Matt J
le 29 Nov 2022
All 3rd order polynomials are wavy. Not sure what you expect.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

