필터 지우기
필터 지우기

Convert an acceleration time graph, into a velocity time graph.

조회 수: 8 (최근 30일)
Chris
Chris 2012년 12월 16일
My acceleration and corrosponding time values are from another function which gives them as 'a' and 't', both in vector form. There are aprox 1000 values for each, where t is incrementing in 0.1(s). And acceleration has positive and negative values. And V0 = 0
I've tried many things such as integrating 'a' with respect to 't', or using V= u+at each in for loops. But my MATLAB skills are limited.
I dont have enough code to really help, but this is the base starting point.
Function [velocity,time] = V_T(o,p,l)
[t,a] = AccCal(o,p,l);
end
  댓글 수: 2
Jürgen
Jürgen 2012년 12월 16일
Hi,start by posting the code you already have in an understandle way , the better you provide the code and some example data the more chance somebody will help you ,R,J
Chris
Chris 2012년 12월 16일
Yes, thankyou. I'm new here, and not knowing the full definition, it seemed urgent to me at the time. So, sorry for that, i've removed it.

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

채택된 답변

Mark Whirdy
Mark Whirdy 2012년 12월 16일
편집: Mark Whirdy 2012년 12월 16일
I'm not sure its a matlab issue as such but you'd need to know the starting velocity at least. If we assume its zero, then I think that since the acceleration is a DIFFERENCE-series of velocities (the change in the velocities per second), it follows that the velocity is the SUM of accelerations so
vel = cumsum(accel);
  댓글 수: 2
Mark Whirdy
Mark Whirdy 2012년 12월 16일
this make sense?
Chris
Chris 2012년 12월 16일
Yes, thankyou. After a lot of long complicated code, im happy to see there's a simple answer. Thankyou.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by