I have a 2D graph that I have created of frequency vs. amplitude as a way to characterize a signal. I am trying to figure out how to write script that takes the WAV I have already imported into MATLAB, and figure out the peaks, the troughs, and the distance between each one. Can someone please help me with some general guidelines, not a complete code, for a script that will help me do this?
Asked
Active
Viewed 737 times
-1
-
1I think you'll also find `findpeaks` quite useful (signal processing toolbox). – Rody Oldenhuis Jan 07 '14 at 07:17
-
Are you looking for `FFT`? I.e. convert your signal from the time domain to the frequency domain? – Dan Jan 07 '14 at 08:50
1 Answers
2
There are several submissions on the file exchange for this. For instance this one, seems applicable (I haven't tested it myself, but it looks good).
Try to search a bit on the file exchange and you will likely find something you can use.
You can also have a look at this question, and this one.

Community
- 1
- 1

Stewie Griffin
- 14,889
- 11
- 39
- 70