I have a matrix, which is an output from angle measurement from a motor. So, over time the angle increases over time until it reaches a maximum (360 i.e) and then stops or descreases.
. For instance:
[0 10 -1 40 50 0 60 10 90 0 ]
How can I remove the invalid values, that in that example are the -1 , second and third '0's and the second 10 ?