⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 program_03_03.m

📁 matlab写的数字信号处理源代码,简化你的信号处理的工作。
💻 M
字号:
% Program 3_3
% Illustration of IDFT Computation
%
% Read in the length K of the DFT and the desired
% length N of the IDFT

colordef black;
K = input('Type in the length of the DFT = ');
N = input('Type in the length of the IDFT = ');
%  Generate the length-K DFT sequence
k = 1:K;
U = (k-1)/K;
%  Compute its N-point IDFT
u = ifft(U,N);
% Plot the DFT and its IDFT
k=1:K;
stem(k-1,U,'g')
xlabel('Frequency index k'); ylabel('Amplitude')
title('Original DFT samples')
pause
subplot(2,1,1)
n = 0:1:N-1;
stem(n,real(u),'g')
title('Real part of the time-domain samples')
xlabel('Time index n'); ylabel('Amplitude')
subplot(2,1,2)
stem(n,imag(u),'g')
title('Imaginary part of the time-domain samples')
xlabel('Time index n'); ylabel('Amplitude')

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -