indmax
Version 1.0.0.0 (322 Bytes) by
Andreas Hoechner
Finds maximum and its index of an N-dimensional array.
901 Downloads
Updated
30 Jan 2008
No License
[ind,maxi]=indmax(x)
Finds index to and maximum of N-dimensional array
ind is cell array
maxi is scalar
Example:
r=rand([2 3 4])
[ind,maxi]=indmax(r)
so that
maximum=r(ind{:})
Cite As
Andreas Hoechner (2024). indmax (https://www.mathworks.com/matlabcentral/fileexchange/18518-indmax), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Descriptive Statistics in Help Center and MATLAB Answers
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 |