当前位置: 首页 > news >正文

基于Hata模型的BPSK调制信号小区覆盖模拟matlab完整程序分享

基于Hata信道模型的BPSK调制信号小区覆盖模拟matlab仿真,对比VoIP, Live Video,FTP/Email

完整程序:

 clc;
clear;
close all;
warning off;
addpath(genpath(pwd));

% Random bits are generated here.
bits = randi([0, 1], [50,1]);
M = 2;
t = 1:1:50;
trans = pskmod(bits,M);
plot(t,trans);
title('BPSK Modulated Signal in Time domain');
xlabel('Bits Distribution');
ylabel('Bit Magnitude');

h = scatterplot(trans);
title('Scatter Plot of BPSK Modulated signal');
% HATA Model
fc = 900;
hr = 3;
ht = 70;
d = 2;
alpha = (1.11*log10(fc) -0.7)*hr - (1.56*log10(fc) -0.8);
% Path Loss in dB for urban case
PL = 69.55 + 26.16*log10(fc) - 13.82*log10(ht) - alpha + (44.9 - 6.55*log10(ht))*log10(d);
%Path Loss in rural case
PLr = PL - 4.78*((log10(fc))^2) + 18.33*log10(fc) - 40.94;


PLr_log_normal = PLr + (randn*6);
%For VOIP
ber1 = 0.01;

%For Live Video Streaming
ber2 = 0.001;

%For Email / File Transfer
ber3 = 0.000001;

snr1 = (qfuncinv(ber1))^2;
snr2 = (qfuncinv(ber2))^2;
snr3 = (qfuncinv(ber3))^2;
sensitivity = -126;
margin = 6*qfuncinv(.1);
Noise=10*log10(normrnd(0,6,1,300));
Pr1 = snr1 + sensitivity + margin +Noise ;
Pr2 = snr2 + sensitivity + margin +Noise ;
Pr3 = snr3 + sensitivity + margin +Noise;
lcable = 0; %No cable loss
I = 0; % Assuming a single cell model
%Taking N to be 0;
Pt1 = PLr + snr1 + margin +lcable +I;
Pt2 = PLr + snr2 + margin +lcable +I;
Pt3 = PLr + snr3 + margin +lcable+I ;

 
Y = ['The Transmitted Power in dB is: ',num2str(Pt1)];   
disp(Y);
area1 = (Pr1/Pt1)*pi*2*2;

area2 = (Pr2/Pt2)*pi*2*2;
area3 = (Pr3/Pt3)*pi*2*2;
theta = linspace(0,2*pi,300);
%plot(theta,area1(length(theta)));
figure;
polarplot(theta,area1,'r-o');
hold on;
polarplot(theta,area2,'g-o');
hold on;
polarplot(theta,area3,'b-o');
title('Polar plot of the three services in Rural Regions');
legend('VoIP', 'Live Video','FTP/Email');

http://www.lryc.cn/news/157656.html

相关文章:

  • 音视频 ffmpeg视频裁剪
  • Web3数据云OORT推出商用版智能代理构建平台:OORT TDS
  • ChatGPT:革命性的自然语言处理技术
  • 利用frps搭建本地自签名https服务的透传
  • 安卓手机安装Linux然后在其中安装(jdk,MySQL,git)
  • javaee之黑马乐优商城2
  • Qt打开及创建项目,运行程序(1)
  • 八种十倍提升API性能的方式
  • pg_database中的datlastsysoid
  • 【已解决】ognl.PropertyAccessor
  • Pytest系列-快速入门和基础讲解(1)
  • 微信小程序实现连续签到七天
  • 将 Spring Boot 应用程序与 Amazon DocumentDB 集成
  • 前端小案例1:用css实现蒙层效果
  • RTMP流媒体服务器EasyDSS视频点播平台在不关闭防火墙的情况下平稳部署的具体步骤
  • QT中信号与槽机制的介绍,以及信号与槽连接的几种方式
  • 学习笔记——Java入门第二季
  • 计算机视觉的应用13-基于SSD模型的城市道路积水识别的应用项目
  • 【39元linux开发板-ADB远程教程】-[ADB远程终端]-幸狐Luckfox Pico-超越树莓派PICO
  • 900ES1-0100 honeywell 可减少视觉引导应用的整体开发时间
  • Openvslam
  • Windows通过RDP异地远程桌面Ubuntu【内网穿透】
  • js 基础 (ES 模块)
  • K8s 多集群实践思考和探索
  • 德国金融监管机构网站遭遇大规模DDoS攻击后“瘫痪”
  • 关于特殊时期电力行业信息中心运营思路
  • 机器人中的数值优化(八)——拟牛顿方法(上)
  • mac安装adobe需要注意的tips(含win+mac all安装包)
  • C/C++学习网址
  • Typora导出的PDF目录标题自动加编号