-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraphique.m
More file actions
37 lines (30 loc) · 1.02 KB
/
graphique.m
File metadata and controls
37 lines (30 loc) · 1.02 KB
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
function graphique()
global positionsAutoA;
global positionsAutoB;
global pointsAutoAInit;
global pointsAutoBInit;
global pointsAutoAFin;
global pointsAutoBFin;
% il faut dessiner les points representant les autos dans un ordre
mat5PtsPrTracerAInit = classerPoints(pointsAutoAInit, 'a');
mat5PtsPrTracerBInit = classerPoints(pointsAutoBInit, 'b');
mat5PtsPrTracerAFin = classerPoints(pointsAutoAFin, 'a');
mat5PtsPrTracerBFin = classerPoints(pointsAutoBFin, 'b');
figure
plot(positionsAutoA(:,1), positionsAutoA(:,2), '-red', ...
positionsAutoB(:,1), positionsAutoB(:,2), '-blue', ...
mat5PtsPrTracerAInit(:,1), mat5PtsPrTracerAInit(:,2), 'black',...
mat5PtsPrTracerAFin(:,1), mat5PtsPrTracerAFin(:,2), 'black', ...
mat5PtsPrTracerBInit(:,1), mat5PtsPrTracerBInit(:,2), 'black', ...
mat5PtsPrTracerBFin(:,1), mat5PtsPrTracerBFin(:,2), 'black')
% nommer les axes
xlabel('x');
ylabel('y');
zlabel('z');
%limites du graphe
limiteX = [-20 200];
limiteY = [-20, 180];
xlim(limiteX);
ylim(limiteY);
grid on;
end