Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Discussion Groups

Discussion Groups | Matlab DSP | Getting value of index

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

Getting value of index - Omar Al-Abbasi - Mar 10 9:58:10 2008



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



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: Getting value of index - el01...@mail.ntua.gr - Mar 11 15:40:16 2008


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



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: Getting value of index - hailang song - Mar 11 15:40:38 2008

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
>



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )