Filter löschen
Filter löschen

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

8 Ansichten (letzte 30 Tage)
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 Kommentare
Jürgen
Jürgen am 16 Dez. 2012
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 am 16 Dez. 2012
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Mark Whirdy
Mark Whirdy am 16 Dez. 2012
Bearbeitet: Mark Whirdy am 16 Dez. 2012
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 Kommentare
Chris
Chris am 16 Dez. 2012
Yes, thankyou. After a lot of long complicated code, im happy to see there's a simple answer. Thankyou.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by