필터 지우기
필터 지우기

Converting velocity, time, and force data into acceleration

조회 수: 13 (최근 30일)
Anthony
Anthony 2014년 1월 6일
편집: Youssef Khmou 2014년 1월 7일
Hello, I am working on a project and am running into a problem converting velocity data into acceleration data. I have velocity data from an ADV as well as force data from a ring transducer on a pile in a wave tank experiment. What would be the easiest way to obtain acceleration data to use in later codes (to obtain drag and inertia coefficients). Thank you.

답변 (2개)

Laurent
Laurent 2014년 1월 6일
Assuming that you have a time series of velocity values, you could just calculate the derivative of the velocity by using the command 'diff' and then dividing by the time difference between adjacent velocity values. Is this what you need?

Youssef  Khmou
Youssef Khmou 2014년 1월 6일
Like Laurent said, a=diff(v)./diff(t), you compare that result with F/m with m being the mass of the considered system,
  댓글 수: 3
Jan
Jan 2014년 1월 6일
gradient is more accurate than the divided differences.
Youssef  Khmou
Youssef Khmou 2014년 1월 7일
편집: Youssef Khmou 2014년 1월 7일
i never used gradient for velocity, but for 2D fields. i think diff is standard, while gradient needs to adjust the step h to be the same as Ts=1/Fs, as in this demo :
t=0:0.01:10;
v=2*t;
a1=diff(v)./diff(t);
a1(end+1)=a1(end);
a2=gradient(v,0.01);
plot(t,a1,t,a2,'r')
legend('diff(v(t))','\nabla v(t)');
if Ts is not known, its not convenient to use grad, !?

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

카테고리

Help CenterFile Exchange에서 Oceanography and Hydrology에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by