📄 transm_power1111.m
字号:
function [prob_power,input_power]=transm_power(porc_prob,M,R)
clear;clc;
porc_prob=input('Please indicate what porcentage of coverage you want:');
M=input('Please enter the number of users:');
R=input('Please enter the radius:');
[m,g_total,g_dist,g_fading]=totalpathgain(M,R)
prob=0;
for i=1:1:M;
if g_total(i)>=-70
prob=prob+1;
else
prob=prob;
end
end
prob_power=prob/M*100
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -