How to find acceleration from velocity and time data ?
247 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Shubham Gupta
2019-10-3
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!