please can any one help me when i excute this code to get a figure for the function S ( in my code) i get an empty figure , please any one can correct that ?
1 view (last 30 days)
Show older comments
L=256; %%%%%% la taille du frame %%%%%%
N =600; %%%%%% le nombre des tag à identifier %%%%%
for i = 1:N
Pidle(i) = (1-(1/L))^i; %%%% la proba ou le slot de temps est vide %%%%%
Psucc(i) = (1/L )* i*(1-1/L)^(i-1); %%%% la proba ou le slot de temps est rempli par une seul tag %%%
Pcoll(i) = 1-Pidle (i)-Psucc(i); %%%%%% la proba ou le slot de temps est rempli par plus que 1 tag %%%
s= Psucc(i) / (Psucc(i)+ Pcoll(i)+ Pidle(i) ) ;
end
hold on
% plot(Psucc , 'r');
% plot(Pcoll,'v');
plot(s,'r');
%
0 Comments
Answers (1)
See Also
Categories
Find more on Numeric Types in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!