How to find acceleration from velocity and time data ?
227 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Shubham Gupta
am 3 Okt. 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 Kommentare
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!