program_03_04.m
来自「自编的一些小波源程序,用MATLAB编的.希望对那些喜欢小波的人有所帮助.去解压」· M 代码 · 共 18 行
M
18 行
% Program 3_4
% Numerical Computation of DTFT Using DFT
%
% Generate the length-16 sinusoidal sequence
colordef black;
k = 0:15;
x = cos(2*pi*k*3/16);
% Compute its 512-point DFT
X = fft(x);
XE = fft(x,512);
% Plot the frequency response
L = 0:511;
plot(L/512,abs(XE),'g')
hold
plot(k/16,abs(X),'o')
xlabel('Normalized angular frequency')
ylabel('Magnitude')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?