Location: 12 L Platform 1 model codes @ 9ac5ec0fe3f8 / peripheral_airway / Peripheral_matlab / bindingfuncs.m

Author:
aram148 <a.rampadarath@auckland.ac.nz>
Date:
2021-12-17 11:46:34+13:00
Desc:
Added the Matlab 7 airway code
Permanent Source URI:
http://models.cellml.org/workspace/6b0/rawfile/9ac5ec0fe3f8ae60e6020b99146573defeb5a5e9/peripheral_airway/Peripheral_matlab/bindingfuncs.m

function [gx, gpx, fpx] = bindingfuncs(X)

% h=1;
% k7=0.005;
% g1=2.*k7;
% g2=20.*g1;
% g3=3.*g1;
% fp1=0.88;
% gp1=0.22;
% gp2=4.*(fp1+gp1);
% gp3=3.*gp1;
% gx=g2/h.*(X<0)+g1.*(X)/h.*(X>=0 & X<=h)+ (g1+g3).*(X)/h.*(X>h);
% gpx= gp2/h.*(X<0)+gp1.*(X)/h.*(X>=0 & X<=h)+(gp1+gp3).*(X)/h.*(X>h);
% fpx=0.*(X<0)+(fp1.*(X)/h).*(X>=0 & X<=h)+0.*(X>h);
 h=1;
k7=0.005;
g1=2.*k7;
g2=20.*g1;
g3=3.*g1;
fp1=0.88;
gp1=0.22;
gp2=4.*(fp1+gp1);
gp3=3.*gp1;
gx=g2/h.*(X<0)+g1.*(X)/h.*(X>=0 & X<=h)+ (g1+g3).*(X)/h.*(X>h);
gpx= gp2/h.*(X<0)+gp1.*(X)/h.*(X>=0 & X<=h)+(gp1+gp3).*(X)/h.*(X>h);
fpx=0.*(X<0)+(fp1.*(X)/h).*(X>=0 & X<=h)+0.*(X>h);   
% k1=0.35.*(X<0)+0.06.*(X).*(X>=0 & X<=h)+ (0.35).*(X>h);
% k6=0.35.*(X<0)+0.06.*(X).*(X>=0 & X<=h)+ (0.35).*(X>h);