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 ?
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');
%
Answers (1)
Walter Roberson
on 30 Jun 2015
s(i) = Psucc(i) / (Psucc(i)+ Pcoll(i)+ Pidle(i) ) ;
1 Comment
safi marwa
on 30 Jun 2015
Categories
Find more on Data Import and Analysis 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!