indmax

版本 1.0.0.0 (322 字节) 作者: Andreas Hoechner
Finds maximum and its index of an N-dimensional array.
901.0 次下载
更新时间 2008/1/30

无许可证

[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{:})

引用格式

Andreas Hoechner (2024). indmax (https://www.mathworks.com/matlabcentral/fileexchange/18518-indmax), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Descriptive Statistics 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0