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');