Jun 15, 2010 #1 T toybani Newbie level 3 Joined Jun 15, 2010 Messages 3 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,299 hi... I load a wav file to a variable.... how can i get the values of the frequencies of this signal??? thanks
hi... I load a wav file to a variable.... how can i get the values of the frequencies of this signal??? thanks
Jun 16, 2010 #2 A amir88 Advanced Member level 4 Joined Nov 4, 2009 Messages 118 Helped 13 Reputation 26 Reaction score 8 Trophy points 1,298 Location bandarabbas Activity points 1,926 Re: signal frequencies https://www.music.mcgill.ca/~gary/307/week1/matlab.html
Jun 16, 2010 #3 T toybani Newbie level 3 Joined Jun 15, 2010 Messages 3 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,299 Re: signal frequencies well thanks but I still can't figure it out... we have: i=wavread('sound.wav'); x=abs(fft(i)); how then can i see which frequencies exist in this signal???
Re: signal frequencies well thanks but I still can't figure it out... we have: i=wavread('sound.wav'); x=abs(fft(i)); how then can i see which frequencies exist in this signal???
Jun 17, 2010 #4 J JoannesPaulus Advanced Member level 3 Joined Mar 19, 2008 Messages 773 Helped 235 Reputation 470 Reaction score 138 Trophy points 1,323 Location USA Activity points 5,006 signal frequencies You need to know the sampling frequency, Fs. Then you can plot the spectrum as follows: Code: [x,Fs,NBIT]=wavread('sound.wav'); N=length(x); X=fft(x); f=(0:N/2-1)*Fs/N; plot(f,abs(X(1:N/2))) You might have to adjust the vector sizes, using floor if your number of points is not even, but I hope you get the point...
signal frequencies You need to know the sampling frequency, Fs. Then you can plot the spectrum as follows: Code: [x,Fs,NBIT]=wavread('sound.wav'); N=length(x); X=fft(x); f=(0:N/2-1)*Fs/N; plot(f,abs(X(1:N/2))) You might have to adjust the vector sizes, using floor if your number of points is not even, but I hope you get the point...