help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading mat file


From: Luke M
Subject: Re: Reading mat file
Date: Thu, 29 Mar 2012 11:26:56 -0700 (PDT)

asha g wrote
> 
> Andrew,
> this is great.Now I want all the peak values - I have about 3- 4 maxima
> for x= 55 . 
> 
> How do I get this program to give me all the peak values and the
> corresponding x values. Here  it is selecting one value of the entire
> lot. 
> 
> Thanks
> Asha 
> 

Oops, I missed this.  If all you want are the indices of vector that equal
the maximum value, that's a whole lot easier than finding local maxima.

idx = find(vv1 == max(vv1))

--
View this message in context: 
http://octave.1599824.n4.nabble.com/Re-Reading-mat-file-tp4487833p4516419.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]