title: Amplitude / Frequency analysis in Matlab
body: <p>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 <strong>general guidelines, not a complete code</strong>, for a script that will help me do this?</p>