[02e2c3]: / RadOnly / duringradUS.m

Download this file

118 lines (100 with data), 2.0 kB

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