Technical discussion about Matlab and issues related to Digital Signal Processing.
Hi everyone, I think its simple question but I didn't figure it out. If I have one column vector and I am searching the minimum value of that vector. Now how I get the index of that minimum value? Many thanks in advance, Omar
Hi everyone, > >I think its simple question but I didn't figure it out. If I have one >column vector and I am searching the minimum value of that vector. Now how >I get the index of that minimum value? > >Many thanks in advance, >Omar > >**************************************** Hi Omar, the function min also returns the position of the minimum value, hence [min_value min_position] = min(x), where x is a column vector Manolis
Hi Omar,
Please look at this.
[Y,I] = 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.
You may need use the matlab's help more effectively. It will help you a
lot.
Hailang
2008/3/10, Omar Al-Abbasi <o...@gmail.com>:
>
> Hi everyone,
>
> I think its simple question but I didn't figure it out. If I have one
> column vector and I am searching the minimum value of that vector. Now how
> I get the index of that minimum value?
>
> Many thanks in advance,
> Omar
>