필터 지우기
필터 지우기

convert velocity to displacement

조회 수: 9 (최근 30일)
Dharmesh Nadhe
Dharmesh Nadhe 2011년 9월 11일
Hello All, I have test data in the vector form i.e. I have one vector with time and other vector with velocity. How can I convert it into displacement? Simple multiplication(displacement=velocity.*time) doesn't work much as it increases. Can someone help me? Thanks in advance

답변 (1개)

Grzegorz Knor
Grzegorz Knor 2011년 9월 11일
Displacement counts as the time integral of velocity.
Displacement in time:
data = [linspace(0,10,100)' rand(100,1)];
cumtrapz(data(:,1),data(:,2))
Total displacement:
trapz(data(:,1),data(:,2))

카테고리

Help CenterFile Exchange에서 Power and Energy Systems에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by