-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVisualization_Script.m
37 lines (28 loc) · 1.14 KB
/
Visualization_Script.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
xL = 250;
yL = 150;
line([0 0], yL); %y-axis
line(xL, [0 0]); %x-axis
r = rectangle('Position',[55 78.5 50 45]);
%axis([0 250 0 150])
r.FaceColor = [0 .5 .5];
r.EdgeColor = 'b';
r.LineWidth = 3;
x = [145 168 188 165 158 120];
y = [14 14 51 89 51 55];
p = patch(x,y,'blue');
p.FaceColor = [0 .5 .5];
p.EdgeColor = 'b';
p.LineWidth = 3;
pos = [165 105 15 15];
c = rectangle('Position',pos,'Curvature',[1 1]);
axis equal
c.FaceColor = [0 .5 .5];
c.EdgeColor = 'b';
c.LineWidth = 3;
hold on
pointsx = [185,184,183,182,181,180,179,178,177,176,175,174,173,172,171,170,169,168,167,166,165,164,163,162,161,160,159,158,157,156,156,156,156,156,156,156,156,156,156,156,156,156,156,155,154,153,152,151,150,149,148,147,146,145,144,143,142,141,140,139,138,137,136,135,134,133,132,131,130,129,128,127,126,125,124,123,122,121,120];
pointsy = [82,82,83,84,85,86,87,88,89,90,90,90,90,90,90,90,90,90,90,90,90,89,88,87,86,85,84,83,82,81,80,79,78,77,76,75,74,73,72,71,70,69,68,67,66,65,64,63,62,61,60,59,58,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57];
plot(pointsx,pointsy);
axis([0 280 0 180])
%out = zeros(10);
%out(sub2ind(size(out),x,y)) = z;