maxmax
Version 1.0.0.0 (305 Bytes) by
Simon
find the max value and position from a multi-dimensional matrix
902 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 (2026). 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 LinuxCategories
Find more on Random Number Generation in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
