Diff of /Sequential/duringchemo.m [000000] .. [02e2c3]

Switch to unified view

a b/Sequential/duringchemo.m
1
% This code is for implementing the Chemotherapy
2
% Travis et al. 2002: Table 2A - Relative Risk is 4.2 without the dose
3
% Table 4A = average of all doses categories is 5.35 and average dose=50
4
5
 
6
close all;
7
clear all;
8
clc;
9
10
OneCycle = 30; % number of days per cycle, Travis 2002
11
NumbCycles = 3; % number of cycles, Historical studies
12
TotalDays = OneCycle * NumbCycles; 
13
14
t_final = TotalDays + 50; % End of treatment
15
16
t = 1:0.01:t_final;
17
D = 20;
18
19
x = zeros(length(t),length(D)*2);
20
21
for i = 1:length(D)
22
    i
23
    x(:,2*i-1:2*i) = ode4(@sys_ndChemo,t,[1;0],D(i),OneCycle,TotalDays); 
24
    
25
    PMCells_after_Saturation(i) = x(end,2*i);
26
    ERR_Breast(i) = x(end,2*i)*1;  
27
end
28
29
Ncells_EndofChemo = x(end,1*i);
30
PMcells_EndofChemo = x(end,2*i);
31
32
ERR_Breast
33
34
RR = 1+ERR_Breast;
35
36
%figure(1)
37
%plot(t,x(:,2))
38