Home > src > BN_pol_rec > Hsand > getComp_Platoon_No.m

getComp_Platoon_No

PURPOSE ^

extracts from string struct_sensors(i).target_id company and platoon no.

SYNOPSIS ^

function [comp_no, plt_no] = getComp_Platoon_No(string_id)

DESCRIPTION ^

extracts from string struct_sensors(i).target_id company and platoon no.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001  function [comp_no, plt_no] = getComp_Platoon_No(string_id)
0002  %extracts from string struct_sensors(i).target_id company and platoon no.
0003  comp_no = str2num(string_id(4));
0004  plt_no = str2num(string_id(9));
0005  if isempty(comp_no) || isempty(plt_no)
0006      disp('ERROR in: getComp_Platoon_No: Empty argument');
0007      comp_no, plt_no
0008  end;
0009      
0010

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