-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdefinedFigure2.m
More file actions
36 lines (34 loc) · 1.08 KB
/
definedFigure2.m
File metadata and controls
36 lines (34 loc) · 1.08 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
function [aa,ab] = definedFigure2(anchorLoc,figureNumber,MultilaterationAlgorithmName)
figure('Name',MultilaterationAlgorithmName);
aa=subplot(2,1,1);
plot3(aa,anchorLoc(:,1),anchorLoc(:,2),anchorLoc(:,3),'ko','MarkerSize',8,'lineWidth',2,'MarkerFaceColor','k');
grid on
hold on
curve = animatedline('Color','r','Marker','o');
axis([-1 4 -1 4.9 0 3]);
ax = gca;
ax.XTick = (0:0.3:3);
ax.YTick = (0:0.3:3.9);
ax.ZTick = (0:1:3);
xlabel('x axis (m)','FontSize',18)
ylabel('y axis (m)','FontSize',18)
zlabel('z axis (m)','FontSize',18)
set(gca,'FontSize',18);
title(aa,'MLat w/o filtering')
hold on
ab=subplot(2,1,2);
plot3(ab,anchorLoc(:,1),anchorLoc(:,2),anchorLoc(:,3),'ko','MarkerSize',8,'lineWidth',2,'MarkerFaceColor','k');
grid on
hold on
curve1 = animatedline('Color','r','Marker','o');
axis([-1 4 -1 4.9 0 3]);
ax1 = gca;
ax1.XTick = (0:0.3:3);
ax1.YTick = (0:0.3:3.9);
ax1.ZTick = (0:1:3);
xlabel('x axis (m)','FontSize',18)
ylabel('y axis (m)','FontSize',18)
zlabel('z axis (m)','FontSize',18)
set(gca,'FontSize',18);
title(ab,'MLat with filtering')
hold on