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.
301.0 次下载
更新 2013/4/4

查看许可证

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
版本 已发布 发行说明
1.0.0.0