Motorola DSP Developer's Kit    
mot566_max

Find the maximum value and index of one or two input vector(s).

MATLAB Syntax

Description

For vectors, mot566_max(X) is the largest element in X. For matrices, mot566_max(X) is a row vector containing the maximum element from each column.

[N,I] = mot566_max(X) returns the indices of the maximum values in vector I.

If the values along the first non-singleton dimension contain more than one maximal element, the index of the first one is returned.

mot566_max(X,Y) returns an array the same size as X and Y with the largest elements taken from X or Y. Either one can be a scalar.

[N,I] = mot566_max(X,DIM) operates along the dimension DIM. When complex, the magnitude mot566_max(mot566_abs(X)) is used.

Characteristics

In the workspace, if the input is:

the returned value is:

Arguments
X,Y
   Vector (or matrix) with elements normalized in the range [-1,1] (for complex elements, both real and imaginary parts should comply with this limit).

N
   Vector or matrix with the same size as input, which consists of maximum value in every position.

See Also
mot566_min


 mot566_log10 mot566_mean