MATLAB: How to analyze movement data

functionstimebins

I have data that looks like this
GRr GPr GYr
-208 223 -13
227 -210 114
216 165 -72
-198 16 242
-243 248 -24
-52 -189 219
82 1 167
10 54 198
20 20 179
-44 -183 28
-229 49 186
-71 -10 -36
-249 15 194
61 241 -68
150 14 233
-43 -233 107
-35 -224 59
The data represents the movement of a joycon controller every 100 milliseconds. I would like to be able to look at the frequency and magnitude of the movement in 1 second timebins. Does anyone have any advice on how I would do this in matlab – such as what functions I would use. I have resting noise profiles for each column (+ or – 2std )

Best Answer

The retime (link) function, specifically the method described in Aggregate Timetable Data and Calculate Mean Values (link) would be how I would approach it.
Related Question