-
Notifications
You must be signed in to change notification settings - Fork 1
/
ClassificationResults.m
63 lines (55 loc) · 1.63 KB
/
ClassificationResults.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
clear all
close all
load('2C_classification.mat');
k = zeros(8, 1);
for i=1:1:400
k(ClassPatterns(8,i) + 1) = k(ClassPatterns(8,i) + 1) + 1;
end
for i=0:1:7
fprintf('Óôçí ïìÜäá %d âñßóêïíôáé: %d ðñüôõðá ', i, k(i+1));
fprintf('\n');
end
fprintf('\n');
s = zeros(8, 1);
l = zeros(7, 1);
for i=1:1:225
if (IW(i,8) >= 0 && IW(i,8) <= 0.05)
s(1) = s(1) + 1;
elseif (IW(i,8) >= 0.95 && IW(i,8) <= 1.05)
s(2) = s(2) + 1;
elseif (IW(i,8) >= 1.95 && IW(i,8) <= 2.05)
s(3) = s(3) + 1;
elseif (IW(i,8) >= 2.95 && IW(i,8) <= 3.05)
s(4) = s(4) + 1;
elseif (IW(i,8) >= 3.95 && IW(i,8) <= 4.05)
s(5) = s(5) + 1;
elseif (IW(i,8) >= 4.95 && IW(i,8) <= 5.05)
s(6) = s(6) + 1;
elseif (IW(i,8) >= 5.95 && IW(i,8) <= 6.05)
s(7) = s(7) + 1;
elseif (IW(i,8) >= 6.95 && IW(i,8) <= 7)
s(8) = s(8) + 1;
elseif (IW(i,8) > 0.05 && IW(i,8) < 0.95)
l(1) = l(1) + 1;
elseif (IW(i,8) > 1.05 && IW(i,8) < 2.95)
l(2) = l(2) + 1;
elseif (IW(i,8) > 2.05 && IW(i,8) < 3.95)
l(3) = l(3) + 1;
elseif (IW(i,8) > 3.05 && IW(i,8) < 4.95)
l(4) = l(4) + 1;
elseif (IW(i,8) > 4.05 && IW(i,8) < 5.95)
l(5) = l(5) + 1;
elseif (IW(i,8) > 5.05 && IW(i,8) < 6.95)
l(6) = l(6) + 1;
elseif (IW(i,8) > 6.05 && IW(i,8) < 7)
l(7) = l(7) + 1;
end
end
for i=0:1:7
fprintf('Óôçí ïìÜäá %d âñßóêïíôáé: %d íåõñþíåò ', i, s(i+1));
if (i < 7)
fprintf('êáé óôï üñéï âñßóêïíôáé: %d íåõñþíåò\n', l(i+1))
fprintf('\n');
end
end
fprintf('\n');