LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
matlab
lib
thirdparty
qmam
examples
QMAM_example_1.m
1
2
% inter-arrival times (PH distribution)
3
alpha = [1/2 1/2];
4
T = [-1 0;
5
0 -2];
6
7
% service times (PH distribution)
8
beta = [1 0];
9
S = [-10 10;
10
0 -10];
11
12
[ql,wait_alpha,wait_T]=Q_CT_PH_PH_1(alpha,T,beta,S);
13
14
subplot(1,2,1);
15
bar(ql);
16
xlabel(
'Queue length'
)
17
ylabel('PMF')
18
19
subplot(1,2,2);
20
x = 0.01:0.01:10;
21
y = zeros(size(x));
22
exitT = -sum(wait_T,2);
23
for i = 1:length(x);
24
y(i) = wait_alpha*expm(wait_T*x(i))*exitT;
25
end
26
plot(x,y);
27
xlabel('Waiting time')
28
ylabel('PDF')
Generated by
1.9.8