Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f1 = 50;
- f2 = 55;
- Fs = 150;
- % Δεν υπαρχει πρωτογενες aliasing
- N = 50;
- dt = 1 / Fs;
- n = [0:1:N-1];
- t = dt*n;
- x = cos(2*pi*f1*t) + cos(2*pi*f2*t);
- X = fft(x);
- stem(n, abs(X));
- hold on;
- N = 75;
- % Στενευει ο κεντρικος λοβος της sinc
- dt = 1 / Fs;
- n = [0:1:N-1];
- t = dt*n;
- x = cos(2*pi*f1*t) + cos(2*pi*f2*t);
- X = fft(x);
- stem(n, abs(X));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement