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 ?

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

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Products

Tags

No tags entered yet.

Asked:

on 30 Jun 2015

Commented:

on 30 Jun 2015

Community Treasure Hunt

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

Start Hunting!