function ydot=RHS_SIP(t,y) % RHS_SIP % % define the RHS of the model equations. % variables are % y(1): S, susceptible, uninfected individuals [number] % y(2): I, infected individuals [number] % y(3): P, infectious particles close % to the susceptible population [number] % array indexes of variables nVar=3;iS=1;iI=2;iP=3; global PAR % most rates are 1/day ydot=zeros(nVar,1); % EQUATIONS % Time changes of susceptable individuals, ydot(iS)= - PAR.Pinfect * y(iP) * y(iS); % Time changes of susceptable individuals, ydot(iI)= PAR.Pinfect * y(iP) * y(iS)- PAR.Imort * y(iI); % Time changes of susceptable individuals, ydot(iP)= PAR.Pburden *PAR.Prelease * y(iI)- PAR.Premove * y(iP);