- refactored

This commit is contained in:
2022-06-30 13:32:40 +02:00
parent 77cd5261b1
commit 776932e5d1
144 changed files with 0 additions and 38 deletions
+13
View File
@@ -0,0 +1,13 @@
% ##################################################################################
% ## Loesung: DFT: Interpolation ##
% ##################################################################################
N = 64;
x = 1-cos(2*pi/N*(0:N-1)); X = fft(x);
x0 = [x zeros(1,N)]; X0 = fft(x0);
figure; stem(0:N-1,abs(X));axis([0 N-1 0 max(X)]);title('abs(X(n))');
xlabel('n');
figure; stem(0:2*N-1,abs(X0)); axis([0 2*N-1 0 max(X)]);title('abs(X0(n))');
xlabel('n');
% ##### EOF #####