How can I plot frequency vs. amplitude of a .wav file?

3 Ansichten (letzte 30 Tage)
Michael Nagler
Michael Nagler am 4 Apr. 2016
Kommentiert: Jan am 13 Apr. 2018
Hello all, I'm trying to analyze pitches in songs represented as wav files. I want to be able to look at the frequencies vs. amplitude of the signal. I don't care about time, so I don't want a spectrogram, and using a periodogram gives me frequency vs. power/frequency. Is there a way to just look at frequency and amplitude? Thanks.

Antworten (1)

Star Strider
Star Strider am 4 Apr. 2016
The code between the top two plot figures in this documentation for fft will give you everything you need to know to plot your signal.
  2 Kommentare
Sai Krishna Reddy Satti
Sai Krishna Reddy Satti am 13 Apr. 2018
Can you please tell me how can I determine the values L(time), x, y for a wav file? I am new to Matlab and do not know how to proceed.
Jan
Jan am 13 Apr. 2018
@Sai Krishna Reddy Satti: Import the WAV file at first by audioread. Then the length of the signal is the size of the first dimension. x and y are the two channels of the signal, so you do not create them.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by