Skip to content
Snippets Groups Projects
Commit fe7d7d16 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

fix search for case in mapping

parent fd05d3f6
Loading
Pipeline #196252 passed
...@@ -30,7 +30,7 @@ end ...@@ -30,7 +30,7 @@ end
fid=fopen([machine_in '_requests_mapping.m'],'r'); fid=fopen([machine_in '_requests_mapping.m'],'r');
nextline=fgetl(fid); nextline=fgetl(fid);
while isempty(nextline) || ~isnumeric(nextline) || nextline~=-1 %length(nextline)>2 || ~strcmp(nextline,'-1') while isempty(nextline) || ~isnumeric(nextline) || nextline~=-1 %length(nextline)>2 || ~strcmp(nextline,'-1')
if length(nextline)>7 && strcmp(nextline(1:6),' case ') if length(nextline)>7 && ~isempty(regexp(nextline,'^ +case '))
ij=find(nextline==['''']); ij=find(nextline==['''']);
if ~isempty(ij) if ~isempty(ij)
for i=1:2:length(ij)-1 for i=1:2:length(ij)-1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment