Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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(y);

% 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(y);
freqz(yfft);

you'll get both the magnitude and phase.

Bye
sanbaba
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top