somebody please help me with this code
6 views (last 30 days)
%arrival times s=[s(1) ... s(n)]
% s(n)<= T < s(n+1)
while (s(length(s))< T),
%N(i) = no. of arrivals by t(i)
hi trying to understand how this code works but have no clue... its a solution for the question below
Generate a sample path of N(t), a rate = 5 arrivals/min Poisson process. Plot N(t)
over a 10-minute interval.
i really dont understand how this works and like there are commands like exponentialrv which i cant find
Nagasai Bharat on 24 May 2021
From my understanding you are trying to generate a Poisson process with a given interval and arrival rate. To do that the following documentation would help you.
From the above code, the exponentialrv looks like a user defined function and is not a MATLAB command or function as per this.