Filter löschen
Filter löschen

calculating velocity and acceleration from force data

6 Ansichten (letzte 30 Tage)
Adrienne
Adrienne am 16 Mai 2014
Kommentiert: David Sanchez am 16 Mai 2014
bw means bodyweight
g=-9.81
I have a force and I have tried to take the bw away from the force and then find velocity and acceleration is this right?
% Calculation of Velocity and Acceleration
%force to acceleration by f=ma
%acceleration=force/mass
%acceleration to velocity = cumtrapz
time = (0:fps:length(fz)-fps);
bw = nanmean(abs(fz(1:to(i,1):40)));
mass = bw/g;
IFz= fz - bw;
I = trapz(time(to(i,1):td(i,1)), IFz(to(i,1):td(i,1)));
a = I/mass;
%velocity
v = I/(bw);

Akzeptierte Antwort

David Sanchez
David Sanchez am 16 Mai 2014
Look at the dimensions of your variables:
a = I/mass; -> Newtons / kg = m/s^2 -> OK
%velocity
v = I/(bw); -> Newtons / Newtons -> NO OK
your definition of velocity does not seem to be right
  3 Kommentare
Adrienne
Adrienne am 16 Mai 2014
if I do v = cumtrapz (a) it still returns a 0?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Support Package for Parrot Drones finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by