How to find maximum value and location of each slice of 3D array in MATLAB?

Viewed 784

What is the fastest way of calculating the maximum value, with it's corresponding index, of each 'slice' of a 3D array?

2 Answers
Related