maxmax
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |