Matlab code for a model of the changes to the cell density of an ex vivo bone marrow system based on different inputs.