Why my polynomial function is wavy
Mostra commenti meno recenti
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 Commento
Matt J
il 29 Nov 2022
All 3rd order polynomials are wavy. Not sure what you expect.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Get Started with Curve Fitting Toolbox 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!

