maxmax

Version 1.0.0.0 (305 Bytes) by Simon
find the max value and position from a multi-dimensional matrix
901 Downloads
Updated 14 Apr 2008

No License

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 (2024). maxmax (https://www.mathworks.com/matlabcentral/fileexchange/19572-maxmax), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Random Number Generation in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0