extracts from string struct_sensors(i).target_id company and platoon no.
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