Question

PLOT the time waveform and its frequency-domain representation using FFT. Please also indicate the correct time and frequency index based on the sampling rate and data length

filename = 'abc.mp3';

audioinfo(filename)

[y,Fs] = audioread(filen);  

N = size(y,1);            

t = [0:1/Fs:(N-1)/Fs];    

f = ([0:1:N-1]/N-0.5)*Fs;  

ys = y(:,1);  %

plot(t);

Y = fft(ys,N);

magnitudeY = abs(Y);

plot(f,magnitudeY);


0 0
Add a comment Improve this question Transcribed image text
Answer #1

the part of code

Y = fft(ys,N);

magnitudeY = abs(Y);

plot(f,magnitudeY);

are not correct.i don't know how to plot frequency-domain representation using FFT.

Add a comment
Know the answer?
Add Answer to:
PLOT the time waveform and its frequency-domain representation using FFT. Please also indicate the correct time and frequency index based on the sampling rate and data length
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT