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

📄 channel.m

📁 多径信道误码率计算
💻 M
字号:
%信道幅频响应

%Design filter by specifying delay in units and
%looking at mag and phase response
%Good deafult values for fft_size = 128 and num_carriers = 32
delay_1 = 6;   %   6
attenuation_1 = 0.35;   %   0.35
delay_2 = 10;   %   10
attenuation_2 = 0.30;   %   0.30
num=[1,zeros(1,delay_1-1),attenuation_1,zeros(1,delay_2-delay_1-1),attenuation_2];
[H,W]=freqz(num,1,512);   %   compute frequency response
mag=20*log10(abs(H));   %   magnitude in dB
phase=angle(H)*180/pi;   %   phase angle in degrees
figure(9),clf
subplot(211),plot(W/(2*pi),mag)
title('多径信道幅度响应')
xlabel('数字频率'),ylabel('幅度 dB')
subplot(212),plot(W/(2*pi),phase)
title('多径信道相位响应')
xlabel('数字频率'),ylabel('相位度数')

break

⌨️ 快捷键说明

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