How to include datasets of both velocity as acceleration
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Frank Oosterveld
le 4 Avr 2020
Commenté : Ameer Hamza
le 8 Avr 2020
Good afternoon all,
From a big dataset of both the velocity as the time - for explanational purposes, lets say:
v = [v1, v2, v3, v4]
t = [t1, t2, t3, t4]
I require the acceleration. By differentiating in the common way, we will obtain the following dataset for the acceleration:
a = diff(v)/diff(t) % = [a1 a2 a3]
Now I got a dynamic equation where the function has variables of both the velocity, time AND acceleration. That is f(a,v,t).
However, the vector dimensions are unequal. How should I proceed? Is it possible to shift the accelerations by +/- 0.5 seconds (how in earth?) such that the acceleration is measured in the correct point. Then I could remove the first or last set of the dataset of 'v' and 't', such that the datasets align in lenghts? Or how would you guys proceed?
0 commentaires
Réponse acceptée
Ameer Hamza
le 4 Avr 2020
Use gradient to keep the vector length equal
a = gradient(v)./gradient(t)
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!