[x,y] =
min(___) finds the indices of the minimum values
and returns them in array y, using any of the input
arguments in the previous syntaxes. If the smallest value occurs multiple
times, the index of the first occurrence is returned.

a =
1.0000 + 2.0000i 2.0000 + 1.0000i 3.0000 + 8.0000i 9.0000 + 1.0000i
DataTypeMode: Fixed-point: binary point scaling
Signedness: Signed
WordLength: 8
FractionLength: 3

The function finds the smallest element of a complex vector
by taking the element with the smallest magnitude.

abs(a)

ans =
2.2500 2.2500 8.5000 9.0000
DataTypeMode: Fixed-point: binary point scaling
Signedness: Signed
WordLength: 8
FractionLength: 3

In vector a, the smallest elements,
at position 1 and 2, have a
magnitude of 2.25. The min function
returns the smallest element in output x, and the
index of that element in output, y.

[x,y] = min(a)

x =
1.0000 + 2.0000i
DataTypeMode: Fixed-point: binary point scaling
Signedness: Signed
WordLength: 8
FractionLength: 3
y =
1

Although the elements at index 1 and 2 have the same magnitude,
the index of the first occurrence of that value is always returned.

Dimension to operate along, specified as a positive integer
scalar. dim can also be a fi object.
If you do not specify a value, the default value is the first array
dimension whose size does not equal 1.

Indices of the minimum values in array x,
returned as a scalar, vector, matrix, or multidimensional array. If
the smallest value occurs more than once, then y contains
the index to the first occurrence of the value. y is
always of data type double.

When a or b is complex,
the min function returns the element with the smallest
magnitude. If two magnitudes are equal, then min returns
the first value. This behavior differs from how the builtin min function resolves ties between complex
numbers.