</pre><pre code_snippet_id="269865" snippet_file_name="blog_20140402_1_5289452" class="plain" name="code">Matlab
移动通信实验:
呼损率的物理意义是损失话务量与呼叫话务量之比的百分数。呼损率也称为系统的服务等级(GOS,Grade of Service)。
呼损率与话务量是一对矛盾,即服务等级和信道利用率是矛盾的。
电话工程里的Erlang公式:呼损率B,(话务量A单位均为Erl)
编程实现已知呼损率B 和 移动电话通信服务系统的信道数n,求话务量A.
程序为:
clc;clear;
%话务量计算程序:
n = input('Please Input the number of channels:\n'); %输入信道数n
b = input('Please Input the GOS:\n'); %输入呼损率b
k = 1;
num =1;
syms A;
%公式中的分母表达
for i= 1:n
k = k*i; %计算i的阶乘:i!,个人认为不比Matlab中的阶乘函数麻烦,所以没选择阶乘函数
num = num + (A^i)/k;
end
%公式中的分子表达
den &