a b/Sequential/duringchemorad.m
1
close all;
2
clear all;
3
clc;
4
5
OneCycle = 30; % number of days per cycle, Travis 2002
6
NumbCycles = 5; % number of cycles, Historical studies
7
TotalDays = OneCycle * NumbCycles; 
8
9
t_final = TotalDays + 50; % End of treatment
10
11
t = 1:0.01:t_final;
12
D = 12;
13
14
x = zeros(length(t),length(D)*2);
15
16
for i = 1:length(D)
17
    i
18
    x(:,2*i-1:2*i) = ode4(@sys_ndChemo,t,[1;0],D(i),OneCycle,TotalDays); 
19
    
20
    PMCells_after_Saturation(i) = x(end,2*i);
21
    ERR_Breast(i) = x(end,2*i)*1;  
22
end
23
24
Ncells_EndofChemo = x(end,1*i);
25
PMcells_EndofChemo = x(end,2*i);
26
27
%RR = 1+ERR_Breast;
28
29
%----------------------------
30
31
t_final = 40;
32
D = 14;
33
t = 1:0.01:t_final;
34
35
x = zeros(length(t),length(D)*2);
36
37
for i = 1:length(D)
38
    i
39
    x(:,2*i-1:2*i) = ode4(@sys_ndRad,t,[Ncells_EndofChemo;PMcells_EndofChemo],D(i)); 
40
    
41
    PMCells_after_Saturation(i) = x(end,2*i);
42
    ERR_lung(i) = x(end,2*i)*1;  
43
end
44
45
Ncells_EndofRad = x(end,1*i);
46
PMcells_EndofRad = x(end,2*i);
47
48
ERR = 1+PMcells_EndofRad
49
50
51