Why my polynomial function is wavy
Mostrar comentarios más antiguos
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 comentario
Matt J
el 29 de Nov. de 2022
All 3rd order polynomials are wavy. Not sure what you expect.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Time Series Events en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

