absmax
版本 1.0.0.0 (1.3 KB) 作者:
Adam McNeilly
Returns the value of the element with the largest absolute value in the input matrix.
Returns the value of the element with the largest abs value in the input matrix 'A'. Input 'A' must be numeric, but can be any size and shape.
This is useful because it eliminates iterating through all the dimensions of a matrix.
examples:
A=[-5 3 2 3; 3 2 1 4];
absmax(A) will return -5
A=[643,10];
absmax(A) will return 643
引用格式
Adam McNeilly (2026). absmax (https://ww2.mathworks.cn/matlabcentral/fileexchange/41115-absmax), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2013a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Language Fundamentals > Matrices and Arrays >
- MATLAB > Language Fundamentals > Operators and Elementary Operations >
在 Help Center 和 MATLAB Answers 中查找有关 Matrices and Arrays 的更多信息
标签
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0.0 |
