# Matlab code for queues

Here's a list of the matlab codes I've written for doing queueing computations. Please note: these codes evaluate analytic formulas for a few standard models. They do not do discrete-event simulations. I have yet to find a truly reasonable way to do queueing simulations in matlab, but if you have any ideas I'd love to hear them. If you would like a copy, please send me e-mail

You might also be interested in the matlab code written by Rui Kang, posted here.
dtmc_stationary_probs_d.m
finds the stationary probabilities for a discrete-time Markov chain, by Dropping an equation then re-normalizing
dtmc_stationary_probs_e.m
finds the stationary probabilities for a discrete-time Markov chain, by an Eigenvector method (a bad idea!)
dtmc_stationary_probs_o.m
finds the stationary probabilities for a discrete-time Markov chain, by using a matrix of Ones
dtmc_stationary_probs_r.m
finds the stationary probabilities for a discrete-time Markov chain, by Replacing an equation with the normalizing equation
ebinv.m
an inverse of the Erlang-B function
ebinv2.m
the other inverse of the Erlang-B function
erlangb.m
blocking probability as a function of servers and traffic
erlangc.m
delay probability and expected delays as a function of servers and traffic
ecinv2.m
servers as a function of traffic and delay probability
gammapdf1.m
the probability density function of a Gamma random variable, given the usual two parameters
gammapdf2.m
the probability density function of a Gamma random variable, given its mean and variance
integrates the mmsr model against a Gamma distribution for traffic
kolesar.m
implements "Kolesar's Third Law of Applied Queueing"
mmsr1.m
statistics for an M/M/s/s+r queue, method 1
mmsr1inv.m
an inverse for the M/M/s/s+r system (uses mmsr1, above)
mmsr2.m
statistics for an M/M/s/s+r queue, method 2
open_jackson.m
performance measures for an open Jackson network
retrialprob.m
the probability of getting blocked when you retry on an Erlang-B system, given that you just got blocked
Also, check Matlab Central to see if anyone has contributed a queueing package.