-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFourE.m
41 lines (37 loc) · 926 Bytes
/
FourE.m
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
clear
clc
data = [
3000 4.856 2.726993501
3000 8.932 2.726993501
3000 2.311 2.726993501
1000 9.683 2.362080486
1000 5.555 2.362080486
1000 11.13 2.362080486
333 20.04 2.913146447
333 16.07 2.913146447
333 23.19 2.913146447
111 55.33 10.68159268
111 31 10.68159268
111 34.83 10.68159268
37 225.7 52.20506574
37 142.1 52.20506574
37 100.1 52.20506574
12.3 172.8 12.49959999
12.3 142.2 12.49959999
12.3 158.4 12.49959999
4.1 323.5 90.83352294
4.1 178.3 90.83352294
4.1 396.9 90.83352294];
%X2 = reducedchi_squared(EC50,residuals,1);
answer = zeros(10000,2);
for i = 1:length(answer)
answer(i,1) = i;
holder = zeros(length(data),1);
for j = 1:length(data)
EST = i/data(j,1);
X2 = ((data(j,2)-EST)./data(j,3)).^2;
holder(j) = X2;
end
answer(i,2) = sum(holder);
end
semilogx(answer(:,1),answer(:,2))