📄 program_8_10.m
字号:
% Program 8_10
% Spectral Analysis Using the DFT
%
N = input('Type in the length of DFT = ');
T = input('Type in the sampling period = ');
freq = input('Type in the sinusoid's frequency = ');
k = 0:N-1;
f = sin(2*pi*freq*k*(1/T));
F = fft(f);
stem(k,abs(F));grid
xlabel('k');
ylabel('|X[k]|');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -