Hello! I have a 500x400x120 matrix. I need to get the maximum values of every 12 steps in the 3rd dimension, so to end up with a 500x400x10 matrix. I tried
but it gives me a 500x400 matrix as a result. Any ideas? Thanks in advance!