Location: Tran 2017 - Cross-bridge model of shortening heat @ 70c85f9bc526 / getCai.m

Author:
Kenneth Tran <k.tran@auckland.ac.nz>
Date:
2017-08-31 15:35:06+12:00
Desc:
Adding online links.
Permanent Source URI:
https://models.cellml.org/workspace/4a2/rawfile/70c85f9bc526e95d066e088954387d87b82f72c9/getCai.m

% Function to generate Cai transient

function Cai = getCai(t)

    tau1 = 20; %(ms)
    tau2 = 33; %(ms)
    Ca_amp = 1.5; %(uM)
    Ca_dias = 0.09; %(uM)
    t_start = 50; %(ms)
    
    beta = (tau1/tau2)^(-1/(tau1/tau2 -1)) - (tau1/tau2)^(-1/(1 - tau2/tau1));
    
    if (t>t_start)
        Cai = ((Ca_amp - Ca_dias)/beta)*(exp(-(t-t_start)/tau1) - exp(-(t-t_start)/tau2)) + Ca_dias;
    else
        Cai = Ca_dias;
    end
    
end