absmax

Returns the value of the element with the largest absolute value in the input matrix.

You are now following this Submission

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

Cite As

Adam McNeilly (2026). absmax (https://www.mathworks.com/matlabcentral/fileexchange/41115-absmax), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0