For example:
a = Range[20];
I want to take elements from a
with interval = 2 :
Take[a, {1, -1, 2}] fails to do this.
It would be better if it works for 3d or higher dimensional large matrix.
For example:
a = Range[20];
I want to take elements from a
with interval = 2 :
Take[a, {1, -1, 2}] fails to do this.
It would be better if it works for 3d or higher dimensional large matrix.