How to find acceleration from velocity and time data ?
245 views (last 30 days)
Show older comments
I have csv file with one column of displacement (11130x1) and another of velocity (11130x2). Time difference between two immediate velocities is 0.01 sec. How can I find acceleration from velocity and time in column next to velocity column.
0 Comments
Answers (1)
Shubham Gupta
on 3 Oct 2019
Assuming you have exported velocity data from the csv file using xlsread or something and saved it in a variable, say, 'vel'. To find acceleration you should know that acceleration is the change of velocity per unit time. So,
Now, let's calculate numerator of the RHS:
dV = gradient(vel);
and denominator is the time difference between successive velocity reading. So,
dt = 0.01; % sec
Now, acceleration LHS will become:
acceleration = dV./dt;
Now, you can easily import this acceleration data to the csv file using xlswrite or something. Let me know if you have any doubts in the future
0 Comments
See Also
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!