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)
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');
%

Answers (1)

Walter Roberson
Walter Roberson on 30 Jun 2015
s(i) = Psucc(i) / (Psucc(i)+ Pcoll(i)+ Pidle(i) ) ;

Categories

Find more on Numeric Types in Help Center and File Exchange

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!