Motorola DSP Developer's Kit
mot566_min
Motorola DSP Developer's Kit
mot566_min
Motorola DSP Developer's Kit    
mot566_min


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

Description

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

[N,I] = mot566_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.

mot566_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] = mot566_min(X,DIM) operates along the dimension DIM. When complex, the magnitude mot566_min(mot566_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
mot566_max


 mot566_mean mot566_round