フィルターのクリア

How to use 'for' loop in Erlang B formula

2 ビュー (過去 30 日間)
kiroro00
kiroro00 2022 年 11 月 6 日
回答済み: Geetla Sindhu 2022 年 11 月 9 日
clc;
clear all;
close all;
N_C = [1,2,3,4,5,10,20,40,80]; %Numbers of channels
T_tr = [0.1:0.1:100];
I started with the code above, may I know how to use the 'for' loop so that all specific numbers of channels as above would be in the Erlang B formula according to the sequence i.e. the Erlang B equation would be repeated 9 times with different number of channels?
Thank you in advance!

採用された回答

Geetla Sindhu
Geetla Sindhu 2022 年 11 月 9 日
Hello,
I understand that you are trying to use Erlang B equation for different number of channels.
The approach for this can be:
for i = 1:9
N = N_C(i)
% Solve Erlang B equation and store the result in an array.
end
You can refer to Finding the traffic intensity, A in Erlang B - MATLAB Answers - MATLAB Central (mathworks.com) for better understanding of how to solve Erlang B equation.
You can also refer to the MATLAB Central File Exchange Example
Thank you.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSparse Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by