{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw2a1

hw2a1 - f function Y = hw2a1(k initL initR initLR initLD...

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

u function Y = hw2a1(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:1; t %----------------Initialize Vector Y--------------------- % Y = zeros(5,1); Y %---------------Initial conditions----------------------- % Y(1,t(1)) = initL; Y(2,t(1)) = initR; Y(3,t(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.

{[ snackBarMessage ]}

Page1 / 2

hw2a1 - f function Y = hw2a1(k initL initR initLR initLD...

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

View Full Document
Ask a homework question - tutors are online
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://www.coursehero.com/file/6408862/hw2a1/", "fetch_time": 1519341053000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2018-09/segments/1518891814292.75/warc/CC-MAIN-20180222220118-20180223000118-00080.warc.gz", "warc_record_offset": 848206626, "warc_record_length": 43527, "token_count": 547, "char_count": 1623, "score": 3.640625, "int_score": 4, "crawl": "CC-MAIN-2018-09", "snapshot_type": "latest", "language": "en", "language_score": 0.5196791887283325, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00057-of-00064.parquet"}