Home > src > BN_pol_rec > functions > getPlt_Pos.m

getPlt_Pos

PURPOSE ^

SYNOPSIS ^

function [pos_plt] = getPlt_Pos(pos_company, platoon_no)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 function [pos_plt] = getPlt_Pos(pos_company, platoon_no)
0003 
0004 if platoon_no == 1
0005     pos_plt = pos_company(1:3,:);
0006     return;
0007 end;
0008 if platoon_no == 2
0009     pos_plt = pos_company(4:6,:);
0010     return;
0011 end;
0012 if platoon_no == 3
0013     pos_plt = pos_company(7:9,:);
0014     return;
0015 end;
0016 disp('WARNING in getPlt_Pos: no of platoons k is bigger than 3');

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