Home > src > BN_pol_rec > Hsand > getRobustPltPolForTimeInter.m

getRobustPltPolForTimeInter

PURPOSE ^

plots errorbar of plan

SYNOPSIS ^

function [PltPolForTimeInter, U, L] = getRobustPltPolForTimeInter(ALL_Family_plRec, t_start, t_end, own_force_id, enemy_cmp_id, pltNo, alternativeNumber)

DESCRIPTION ^

 plots errorbar of plan 
Indata

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 
0003 function [PltPolForTimeInter, U, L] = getRobustPltPolForTimeInter(ALL_Family_plRec, t_start, t_end, own_force_id, enemy_cmp_id, pltNo, alternativeNumber)
0004 % plots errorbar of plan
0005 %Indata
0006 %
0007 
0008 [noOfParticles, noOfstructs] = size(ALL_Family_plRec{1}{1,1});
0009 U = []; L = []; PltPolForTimeInter = [];
0010 for t = t_start:t_end
0011     curr_alt = [];
0012    for p = 1:noOfParticles
0013        curr_alt = [curr_alt; ALL_Family_plRec{t}{own_force_id, enemy_cmp_id}{p, pltNo+1}.PltPol(alternativeNumber)];
0014    end;
0015    curr_alt
0016    PltPolForTimeInter = [PltPolForTimeInter; mean(curr_alt)];
0017    U = [U; max(curr_alt) - mean(curr_alt)];
0018    L = [L; min(curr_alt) - mean(curr_alt)];
0019 end;
0020 T = [t_start:t_end]';
0021 errorbar(T, PltPolForTimeInter, U, L)

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