How to find acceleration from velocity and time data ?
221 ビュー (過去 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!