The previous section described the mathematical model used to represent cerebral blood flow. Both the simplified one-compartment model (neglecting V0), and the full two-compartment model were implemented numerically in MATLAB.