Search code examples
matlabwavanalysisfrequencyspectrum

Amplitude / Frequency analysis in Matlab


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?


Solution

  • 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.