Hi,
I'm investigating data from a force plate (study of balance in people with movement disorders). I have a raw signal such as:
vector = 1 2 3 4 0 0 0 0 5 6 7 4 7 8 0 0 0 1 2 5 4 0 0 0 0 0 5 6
I need to split this signal into separate vectors that only contain sequences of numbers greater than 0. So the ideal result for the above would be:
vector 1 = 1 2 3 4vector 2 = 5 6 7 4 7 8vector 3 = 1 2 5 4vector 4 = 5 6
I hope the question is clear enough. Any help would be greatly appreciated!
Best Answer