Motorola DSP Developer's Kit    
mot563_min

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

MATLAB Syntax

Description

For vectors, mot563_min(X) is the smallest element in X. For matrices, mot563_min(X) is a row vector containing the minimum element from each column.

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

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

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

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

Characteristics

In the workspace, if the input is:

then 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 minimum value in every position.

See Also
mot563_max


 mot563_mean mot563_round