Jan 04, 2017 · There’s a very simple way to connect your Arduino to Matlab and start reading data from your board. Here’s how I would do it: 1. Start Matlab and click on the Add-Ons Menu.
vx += ax * dt; vy += ay * dt; vz += az * dt; if you get accleration as a raw number and angle then you will have to convert from I guess polar coordinates to xyz components to be able to add them up. Total speed, | v | is, of course, given by | v | = v x 2 + v y 2 + v z 2. I would, of course, try to start at v = 0.