0001
0002
0003 function [a] = plotPolicies(ALL_policy_stuct, own_force, currEnemy, color, text_, text_pos, t_start, t_end)
0004
0005
0006
0007
0008 [CmpPolTimeVec] = getCmpPolForTimeInter(ALL_policy_stuct, t_start, t_end, own_force, currEnemy)
0009 X = [t_start:t_end]';
0010 plot(X,sum(CmpPolTimeVec(1:2,:)), color, 'LineWidth', 2), hold on
0011 text(text_pos(1), text_pos(2),['\leftarrow' 'No. of Sensors(' text_ ')'] , 'FontSize', 12, 'EdgeColor' ,color)
0012 title(['Estimated Attack Proabibility of North Company: ' num2str(currEnemy)' ])
0013 ylabel('Probability For Attack')
0014 xlabel('Simulation Time')
0015
0016
0017
0018