Diff of /RadOnly/duringradUS.m [000000] .. [02e2c3]

Switch to unified view

a b/RadOnly/duringradUS.m
1
% % This code is for implementing RT 
2
% % Radiation therapy first and then Chemotherapy 
3
% 
4
% close all;
5
% clear all;
6
% clc;
7
% 
8
% % This code is for Radiation Therapy
9
% 
10
% t_final = 40;
11
% %D = 0:1:60;
12
% t = 1:0.01:t_final;
13
% A = dlmread('test.txt','\t');
14
% D = A(:,1);
15
% 
16
% x = zeros(length(t),length(D)*2);
17
% r1 = 0.6:0.01:0.9;
18
% 
19
% for j = 1:length(r1)
20
%     r = r1(j);
21
%     clear x;
22
% for i = 1:length(D)
23
%     i
24
%     x(:,2*i-1:2*i) = ode4(@sys_ndRadUS,t,[1;0],D(i),r); 
25
%     PMCells_after_Saturation(i) = x(end,2*i);
26
%     ERR_thyroid(i) = x(end,2*i);  %  
27
% end
28
% 
29
% Ncells_EndofRad = x(end,1*i);
30
% PMcells_EndofRad = x(end,2*i);
31
% 
32
% figure(1)
33
% hold on
34
% plot(D,1+ERR_thyroid)
35
% 
36
% %plot(D,PMCells_after_Saturation)
37
% 
38
% %------- Thyroid ERR data due to HL from Shuryak--------% 
39
% 
40
% A = dlmread('test.txt','\t');
41
% 
42
% x = A(:,1);
43
% y = A(:,2);
44
% 
45
% U = dlmread('testU.txt');
46
% L = dlmread('testL.txt');
47
% 
48
% U1 = U-y;
49
% L1 = y-L;
50
% 
51
% errorbar(x,y,L1,U1,'bo')
52
% hold off
53
% 
54
% Y1 = PMCells_after_Saturation;
55
% Y2 = A(:,2)';
56
% E = (Y1-Y2).^2;
57
% E1(j) = sqrt(sum(E)/length(Y1))
58
% 
59
% end
60
% 
61
% figure
62
% plot(r1,E1)
63
64
65
% This code is for implementing RT 
66
% Radiation therapy first and then Chemotherapy 
67
68
close all;
69
clear all;
70
clc;
71
72
% This code is for Radiation Therapy
73
74
t_final = 40;
75
D = 0:1:60;
76
t = 1:0.01:t_final;
77
%A = dlmread('test.txt','\t');
78
%D = A(:,1);
79
80
x = zeros(length(t),length(D)*2);
81
for i = 1:length(D)
82
    i
83
    x(:,2*i-1:2*i) = ode4(@sys_ndRadUS,t,[1;0],D(i)); 
84
    PMCells_after_Saturation(i) = x(end,2*i);
85
    ERR_thyroid(i) = x(end,2*i);  
86
end
87
88
Ncells_EndofRad = x(end,1*i);
89
PMcells_EndofRad = x(end,2*i);
90
91
figure(1)
92
hold on
93
plot(D,1+ERR_thyroid)
94
95
%plot(D,PMCells_after_Saturation)
96
97
%------- Thyroid ERR data --------% 
98
99
A = dlmread('test.txt','\t');
100
101
x = A(:,1);
102
y = A(:,2);
103
104
U = dlmread('testU.txt');
105
L = dlmread('testL.txt');
106
107
U1 = U-y;
108
L1 = y-L;
109
110
errorbar(x,y,L1,U1,'bo')
111
hold off
112
113
%Y1 = PMCells_after_Saturation;
114
%Y2 = A(:,2)';
115
%E = (Y1-Y2).^2;
116
%E1(j) = sum(E)/length(Y1)
117