Home > src > BN_pol_rec > visualization > plotPolicies.m

plotPolicies

PURPOSE ^

-----------------------------------------------------------------

SYNOPSIS ^

function [a] = plotPolicies(ALL_policy_stuct, own_force, currEnemy, color, text_, text_pos, t_start, t_end)

DESCRIPTION ^

-----------------------------------------------------------------
                    Plot results
----------------------------------------------------------------

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 
0003 function [a] = plotPolicies(ALL_policy_stuct, own_force, currEnemy, color, text_, text_pos, t_start, t_end)
0004 
0005 %-----------------------------------------------------------------
0006 %                    Plot results
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 % subplot(own_force,currEnemy,1), plot(X)
0016 % subplot(own_force,currEnemy,2), plot(CmpPolTimeVec)
0017 
0018

Generated on Wed 16-Mar-2005 09:17:47 by m2html © 2003