-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplot_7_2.m
48 lines (39 loc) · 1.04 KB
/
plot_7_2.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
41
42
43
44
45
46
47
48
function [] = plot_7_2(wait1,wait2,coronaTest)
%PLOT_7_2 Summary of this function goes here
% Detailed explanation goes here
wait = wait1 + wait2;
positive_wait = [];
p_counter = 1;
negative_wait = [];
n_counter = 1;
number_of_patients = length(coronaTest);
for i = 1:number_of_patients
if coronaTest(i)==1
positive_wait(p_counter) = wait1(p_counter) + wait2(p_counter);
p_counter = p_counter + 1;
elseif coronaTest(i)==0
negative_wait(n_counter) = wait1(n_counter) + wait2(n_counter);
n_counter = n_counter + 1;
end
end
figure
hist(wait);
title('wait time of all patients')
xlabel('wait time')
ylabel('number of patinets')
figure
hist(positive_wait);
title('wait time of patients with + corona test')
xlabel('wait time')
ylabel('number of patinets')
figure
hist(negative_wait);
title('wait time of patients with - corona test')
xlabel('wait time')
ylabel('number of patinets')
% plot(negative_rosponse_time,unique(negativee_rosponse_time));
% hold;
%
% plot(response_time,unique(response_time));
% hold;
end