c5_pmc.m
来自「無線通訊系統仿真原理與應用 詳細介紹通訊的仿真方法」· M 代码 · 共 16 行
M
16 行
% File: c5_pmc.m
% Software given here is to accompany the textbook: W.H. Tranter,
% K.S. Shanmugan, T.S. Rappaport, and K.S. Kosbar, Principles of
% Communication Systems Simulation with Wireless Applications,
% Prentice Hall PTR, 2004.
%
order = 50, % points in impulse response
f = [0 0.1 0.12 0.23 0.25 0.35 0.37 1]; % frequency points
amp = [1 1 0 0 1 1 0 0]; % amplitude response
b = remez(order,f,amp); % synthesize filter
stem(b,'.k') % plot impulse response
xlabel('Sample Index') % label x axis
ylabel('Amplitude') % label y axis
pause % pause
freqz(b,1) % plot results
% End of script file.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?