sana_akhtar
Member level 2
- Joined
- Apr 21, 2012
- Messages
- 47
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,606
Hey
MY question is this graph right? I mean the frequency is going beyond 20kHz. Will that be audible to us or not?
Here is a FFT of a noise from a machine.
The code I used in MATLAB is :
MY question is this graph right? I mean the frequency is going beyond 20kHz. Will that be audible to us or not?
Here is a FFT of a noise from a machine.
The code I used in MATLAB is :
Code:
clear all
clc;
load handel.mat
filename='memo.wav';
[y,Fs]=wavread(filename);
t=0:1/Fs:(length(y)-1)/Fs;
figure (1),
plot(t,y)
title('Orginal Signal y(t)')
xlabel('Time (sec.)')
ylabel('Signal (y)')
n=length(y)-1;
f=-Fs/2:Fs/n:Fs/2;
sigFFT= fft(y);
figure(2),
plot(f,abs(sigFFT))
title('Single-Sided Amplitude Spectrum of y(t)')
xlabel('Frequency (Hz)')
ylabel('|Y(f)|')
Last edited by a moderator: