How can I find the absolute maximum or minimum of a multi-dimensional matrix in Matlab?

Posted by Nathan Fellman on Stack Overflow See other posts from Stack Overflow or by Nathan Fellman
Published on 2010-04-14T05:41:28Z Indexed on 2010/04/14 5:42 UTC
Read the original article Hit count: 216

I have a 4D array of measurements in Matlab. Each dimension represents a different parameter for the measurement. I want to find the maximum and minimum value and the index (i.e. which parameter) of each.

What's the best way to do it? I figure I can take the max of the max of the max in each dimension, but that seems like a kludge.

© Stack Overflow or respective owner

Related posts about matlab

Related posts about multidimensional-array