I'm looking for a function to help me to process the output from an
accelerometer to obtain velocity and Position. The data are
acceleration measured every 0.1s. If such a function is available
could please tell me which one it is or if you have met such a problem
in the past.
Thanks for your help.
Sebastien
e.g.
% I may have the arguments round the wrong way here.
[b,a]=butter(10,0.1,'high');
acc=filter(b,a,yourdata);
vel=cumsum(acc)*dt;
pos=cumsum(vel)*dt;
I think you should look at MATLAB’s ode (ordinary differential equations)
functions, function ode45 for example. You should be able to set up your
integration of accelerometer data problem as a set of first order
differential equations and use one of the ode functions to solve for
velocity and position. Go to help/function/ode45 as a start.
Regards, John Lukesh