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

📄 c5_firbutter.m

📁 無線通訊系統仿真原理與應用 詳細介紹通訊的仿真方法
💻 M
字号:
% File: c5_firbutter.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 = 30;	fc =5;						% set filter parameters
fmax = 100;								% set max frequency
npts = 256;								% set number of samples
f = (0:(npts-1))*(fmax/(npts-1));		% frequency vector
nn = 2*npts;							% size ifft
H = zeros(1,nn);						% initialize vector
Ha = 1./(sqrt(1+(f/fc).^order));		% amplitude response
H = [Ha 0 fliplr(Ha(2:npts))];			% even amplitude response
[cimp_resp] = ifft(H,nn);				% complex impulse response
imp_resp = real(cimp_resp);				% take real part
aa = imp_resp(1:npts);					% time >= 0
bb = imp_resp((npts+1):nn);				% time < 0
reimpulse = [bb aa];					% real and even imp. resp.
plot(reimpulse)							% plot result
% End of script file.

⌨️ 快捷键说明

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