How to find acceleration from velocity and time data ?
227 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Shubham Gupta
el 3 de Oct. de 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 comentarios
Ver también
Categorías
Más información sobre Spreadsheets en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!