Guest User

MATLAB Code

a guest
Jan 4th, 2018
1,228
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >> [y, Fs] = audioread('M1 - 1.wav');
  2. >> X = fft(y);
  3. >> X = X(1:length(y)/2+1);
  4. >> freq = 0:Fs/length(y):Fs/2;
  5. >> plot(freq,abs(X))
RAW Paste Data