calculating velocity and acceleration from force data

조회 수: 6 (최근 30일)
Adrienne
Adrienne 2014년 5월 16일
댓글: David Sanchez 2014년 5월 16일
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);

채택된 답변

David Sanchez
David Sanchez 2014년 5월 16일
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
Adrienne
Adrienne 2014년 5월 16일
if I do v = cumtrapz (a) it still returns a 0?
David Sanchez
David Sanchez 2014년 5월 16일
You need to add the time values to your integration. Take a look at these links to get velocity from acceleration:

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Parrot Drones에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by