# Hw2a - function Y = hw2a(k initL initR initLR initLD initD%The equation for concentration of L to be solved it 0L(t/dt =-k1*L(t*R(t k2*LR(t

This preview shows pages 1–2. Sign up to view the full content.

function Y = hw2a(k, initL, initR, initLR, initLD, initD) f %The equation for concentration of L to be solved it: % %dL(t)/dt = -k1*L(t)*R(t) + k2*LR(t) - k5*L(t)*D(t) + k6*LD(t); % %The equation for concentration of R to be solved it: % %dR(t)/dt = -k1*L(t)*R(t) + k2*LR(t) - k7*L(t)*R(t) + k8*L(t)*D(t); % %The equation for concentration of LR to be solved it: % %dLR(t)/dt = k1*L(t)*R(t) + k2*LR(t) - k7*L(t)*R(t) + k8*L(t)*D(t); % %The equation for concentration of LD to be solved it: % %dLD(t)/dt = k3*LR(t) - k4*LD(t) + k5*L(t)*D(t) - k6*LD(t) % %The equation for concentration of D to be solved it: % %dD(t)/dt = k7*L(t)*R(t) - K8*L(t)*D(t) + k6*LD(t) - k5*L(t)*D(t) % %----------------Set up time interval-------------------- % h = 0.1; h %----------------Set up duration------------------------- % t = 0:h:10; t %----------------Initialize Vector Y--------------------- % Y = zeros(5,1); Y %---------------Initial conditions----------------------- % Y(1,1) = initL; Y(2,1) = initR; Y(3,1) = initLR;

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 09/15/2011 for the course BME 210 at USC.

### Page1 / 2

Hw2a - function Y = hw2a(k initL initR initLR initLD initD%The equation for concentration of L to be solved it 0L(t/dt =-k1*L(t*R(t k2*LR(t

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online