-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGraphs.m
50 lines (42 loc) · 1.51 KB
/
Graphs.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
function Graphs(textures,legenda, feature)
% Changelog:
% - [07.03.11] one feature, one plot
% - [28.02.11] made variables global
%close Figure 1
screen_size = get(0, 'ScreenSize');
f1 = figure(1);
set(f1, 'Position', [0 0 screen_size(3) screen_size(4) ] );
load(textures);
%the first, and the fifth - so every first
plot(1:4:length(values(:,feature)), values(1:4:end,feature), '*b');
hold on
plot(2:4:length(values(:,feature)), values(2:4:end,feature) , 'or' );
hold on
plot(3:4:length(values(:,feature)), values(3:4:end,feature), '+g');
hold on
plot(4:4:length(values(:,feature)), values(4:4:end,feature), 'dk');
hold off
set(gca,'xTick',1:length(values(:,feature)));
set(gca,'xTickLabel', classes);
if(strcmp(legenda, 'Rotation'))
legend('180','270','90','0');
xl = 'Verschiedene Testobjekte in verschiedenen Rotationen (180, 270, 90 und 0 Grad)';
tl = 'Originale in verschiedenen Zoomstufen ';
else
if(strcmp(legenda,'Zoom'))
legend('100 %','66 %','50 %','25 %');
xl = 'Verschiedene Testobjekte in verschiedenen Zoomstufen (100%, 66%, 50%, 25%)';
tl = 'Originale in verschiedenen Zoomstufen ';
else
if(strcmp(legenda,'Ausschnitt'))
legend('100 %','66 %','50 %','25 %');
xl = 'Verschiedene Testobjekte in verschiedenen Ausschnitten vom Original (100%, 66%, 50%, 25%)';
tl = 'Verschiedenen Ausschnitte der Originale';
end
end
end
%label
xlabel(xl);
ylabel(char(header(feature)));
title(tl);
xticklabel_rotate;