-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsweep_plot.m
More file actions
25 lines (22 loc) · 1.04 KB
/
Copy pathsweep_plot.m
File metadata and controls
25 lines (22 loc) · 1.04 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
close all
if (true)
for j=2:q
figure
xlabel('Sampling Time k','FontSize',14);
ylabel('Workload','FontSize',14)
hold on
for i=1:n
if (true) %to plot for proposed algo
plot(1:k_simul_opt_compare(j-1,3),squeeze(m2(i,j,1:k_simul_opt_compare(j-1,3))),'LineWidth',2)
legend({str(i)},'Interpreter','latex','FontSize',14, 'Orientation','vertical','Box','off')
end
hold on
if (false) %to plot for DTSC algo
plot(1:k_simul_opt_compare(j-1,1),squeeze(m(i,j,1:k_simul_opt_compare(j-1,1))),'LineWidth',2)
end
end
%legend({str(1),str(2),str(3),str(4),str(5),str2(1),str2(2),str2(3),str2(4),str2(5)},'Interpreter','latex','FontSize',14, 'Orientation','vertical','NumColumns',2)
legend({str2(1),str2(2),str2(3),str2(4),str2(5)},'Interpreter','latex','FontSize',14, 'Orientation','vertical','NumColumns',2, 'Box', 'On')
end
end
set(gcf, 'Position', [100, 100, 550, 290])