1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| function List = Untitled2(Planches)
Planches= textread('c:\Users\to102551\My Documents\21-03-12\L95E\ELAC_L95E_2040_1369_A320.E0001','%s','delimiter','\n');
for f =1:length(Planches)
Planches{f}=lower(Planches{f});%% Conversion en minuscule pour les besoins de la comparaison
end
% initialtlize the structure
List.sheet='';
List.variant='';
List.issue='';
List.full='';
List.line='';
indexSheet = strmatch('l0',Planches );
Planches =Planches(indexSheet);
for i= length(Planches)
List(i).line = Planches{i}; %#ok<*AGROW>
% List(i).line=textscan(Planches{i},'%s','delimiter','');
List(i).sheet=Planches{i}(1:10);%planches
List(i).variant=Planches{i}(11:13);%variant
List(i).issue=Planches{i}(14:15);%issue
List(i).full=[List(i).sheet,...
List(i).variant,...
List(i).issue];
end
ind = find ( Planches {i} , 'COM' );
end |
Partager