Location: Tong_2011_V1 @ a03f680a6922 / code / Distribution-Moment-Approximation-Physiome-paper-1.0 / ZahM / lengthvar.m

Author:
Leyla <noroozbabaee@gmail.com>
Date:
2022-05-10 14:01:08+12:00
Desc:
Adding Tong_2011 to PMR
Permanent Source URI:
https://models.cellml.org/workspace/85c/rawfile/a03f680a69226c515cd789723c8036028406852b/code/Distribution-Moment-Approximation-Physiome-paper-1.0/ZahM/lengthvar.m

function [alpha,V] =lengthvar(t,f)

L=1*(t<180)+(1+(0.01*sin(2*pi*f*t)))*(t>=180 && t<=245)+(1+(0.04*sin(2*pi*f*t)))*(t>245);
gamma=25;
alpha=-gamma*(L-1);

%This
%is the V to use for DM

V=0*(t<180)+(-2*pi*gamma*0.01*f*cos(2*pi*f*t))*(t>=180 && t<=245)+(-2*pi*gamma*0.04*f*cos(2*pi*f*t))*(t>245);