-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclassidentify.m
More file actions
32 lines (28 loc) · 856 Bytes
/
classidentify.m
File metadata and controls
32 lines (28 loc) · 856 Bytes
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
%Copyright (c) 2013 Ramon Franquesa Alberti, Carlos Martin Isla , Gonzalo Lopez Lillo , Aleix Gras Godoy
function c = classidentify (C)
l = length(C);
switch l
case 5 %other
c = 6; %Class 1
case 6 %
c = 8; %Class 2 sports
case 7
if C(1) == 'p'
c = 7; %Class 9 protest
elseif C(1) == 'f'
c = 4; %Class 8 fashion
else
c = 1; %Class 3 concert
end
case 9 %non_event
c = 5; %Class 4
case 10 %conference/exhibition
if (C(1)=='c')
c = 2; %Class 5 confere
else
c = 3; %Class 6 exhibit
end
case 13 %theater_dance
c = 9; %Class 7
end
end