Apologies for the basic question.
If I had x=[0,5,4,3,7,9,2,4,7,9]
And I wanted to find the difference between values with a spacing of 2:
I.e. the difference between 0 and 4, 5 and 3, 4 and 7, 3 and 9, 7 and 2 etc...
Returning [4,-2,3,6,-5,-5,5,5] ... How would I go about doing that?
0 Comments
Sign in to comment.