Motorola DSP Developer's Kit |
Motorola DSP Developer's Kit |
Motorola DSP Developer's Kit | ![]() ![]() |
N=mot563_min(X,Y) N=mot563_min(X,DIM) [N,I]=mot563_min(X,DIM)
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:
X=[0.4807 + 0.0000i 0.0319 - 0.2921i 0.0000 + 0.6717i 0.5273 + 0.7144i] Y=[-.1245 + 0.2242i 0.2623 - 0.7241i 0.7800 + 0.1121i -0.2324 ]
N= mot563_min(X,Y) N=-0.1245 + 0.2242i 0.0319 - 0.2921i 0 + 0.6717i -0.2324
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).
See Also
mot563_max
![]() | mot563_mean | mot563_round | ![]() |