MATLAB: How to determine the start and end of a movement

matlab functionsensorsignal processing

Hello Everyone, I am trying to determine the beginning and the end of a movement , using matlab. So I have as ensr, that I used to collect data for specific movement. But before the actual movement, there is some time, where I the actual movement is not present yet, but the waiting position.
How can I get rid of that ? Any algorithm to find the start and end of a movement?
I would be greateful for any help

Best Answer

Just crop it off starting at some index:
signal = signal(index:end)
To find out what index is, we'd need to know your signal, and your movement signal (if they're different signals). Attach it/them in a .mat file with the paper clip icon.