FFT Plot of audio signal (MATLAB)

Status
Not open for further replies.

mehboob_iiui

Full Member level 2
Joined
May 20, 2006
Messages
132
Helped
8
Reputation
16
Reaction score
1
Trophy points
1,298
Location
Rawalpindi - Pakistan
Activity points
2,013
plotting of audio signal

consider the following Matlab code:

y=wavrecord(5*11000,11000,'double');
yfft=fft;

% now I want to plot yfft such that I get frequency on the horizontal
% and amplitude on vertical axis

% I have tried
stem(yfft);
stem (imag(yfft),real(yfft));

but they donot give the required results...
 

write like this.

y=wavrecord(5*11000,11000,'double');
yfft=fft;
freqz(yfft);

you'll get both the magnitude and phase.

Bye
sanbaba
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…