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
| function List = Untitled2(Planches)
Planches= textread('mon fichier','%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).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 |
Partager