|
a |
|
b/ChemoOnly/duringchemo.m |
|
|
1 |
% This code is for implementing the Chemotherapy |
|
|
2 |
|
|
|
3 |
close all; |
|
|
4 |
clear all; |
|
|
5 |
clc; |
|
|
6 |
|
|
|
7 |
OneCycle = 30; % number of days per cycle |
|
|
8 |
NumbCycles = 5; % number of cycles |
|
|
9 |
TotalDays = OneCycle * NumbCycles; |
|
|
10 |
|
|
|
11 |
t_final = TotalDays + 50; % End of treatment |
|
|
12 |
|
|
|
13 |
t = 1:0.001:t_final; |
|
|
14 |
D = 12; |
|
|
15 |
|
|
|
16 |
x = zeros(length(t),length(D)*2); |
|
|
17 |
|
|
|
18 |
for i = 1:length(D) |
|
|
19 |
i |
|
|
20 |
x(:,2*i-1:2*i) = ode4(@sys_ndChemo,t,[1;0],D(i),OneCycle,TotalDays); |
|
|
21 |
|
|
|
22 |
PMCells_after_Saturation(i) = x(end,2*i); |
|
|
23 |
ERR_Thyroid(i) = x(end,2*i); |
|
|
24 |
end |
|
|
25 |
Ncells_EndofChemo = x(end,1*i); |
|
|
26 |
PMcells_EndofChemo = x(end,2*i); |
|
|
27 |
|
|
|
28 |
ERR_Thyroid; |
|
|
29 |
RR = 1+ERR_Thyroid |
|
|
30 |
|