Finding peaks of a signal.

조회 수: 6 (최근 30일)
Jolini
Jolini 2013년 6월 19일
Hi. I have this wav file, from which i need to find out the notes played. I got the time domain envelope of the signal, now i need to find the peaks. I was specifically told to use the 1st and 2nd derivatives to do so.
Say my enveloped signal is "Y".
According to some articles i read, when i take the 1st derivative of Y, all max and min points would become zero. Then when i differentiate again, negative values would indicate a maximum. But when i try to implement it in MATLAB I'm getting errors. This is what i did;
W = diff(Y);
Z = diff(W);
And then I try to plot these two graphs. As I'm new to MATLAB Im finding it hard at some points to write codes... and unfortunately my project needs to be done in MATLAB codes. Would really appreciate if someone could write a proper code for this.
  댓글 수: 2
Muthu Annamalai
Muthu Annamalai 2013년 6월 20일
Ravi
Ravi 2013년 6월 21일
http://billauer.co.il/peakdet.html % This function is released to the public domain; Any use is allowed.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by