maxmax

find the max value and position from a multi-dimensional matrix

You are now following this Submission

The maxmax function can find the max value and return the positions from a multi-dimensional matrix.
[max_value max_id]=maxmax(x)
The max_value is the biggest value in matrix x, and max_id is structured in [dim1 dim2 dim3...], the length of max_id is equal to the number of the dimensions of matrix x.
This method can be also applied to min and other functions.
e.g.

x=rand(2,8,4);
[max_value max_id]=maxmax(x)

Cite As

Simon (2026). maxmax (https://in.mathworks.com/matlabcentral/fileexchange/19572-maxmax), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Random Number Generation in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0