Looking for peak detection of absolute value curve code

Status
Not open for further replies.

kalais_eee

Newbie level 2
Joined
Feb 23, 2008
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
Want code to detect the peaks of absolute value curve
 

Re: Peak Detection

Do you have an analogous signal? Then absolute value and peak detector would require two or three OP. Peak detector could either have a return time constant or a reset switch.
 

Peak Detection

i want to get the magnitude of the peak values using matlab.. i want the code...
 

Re: Peak Detection

what is your signal?
is it a function of time?
at first please write your function.
 

Re: Peak Detection

Dear kalais_eee

if you want that somebody helps you you should be a little bit more polite!

Instead of "I want ... I want..." would be better if you had used "Please, I would ... Thank you".

Anyway, you could try a function which implements this pseudo code

if(current value > StoredPeak)
StoredPeak = CurrentValue
else
StoredPeak = StoredPeak * DecayConstant

where choice of the decay constant depends on the application.

Regards
Mowgli
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…