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
No related branches found
No related tags found
1 merge request!154remove tabs replace by spaces and indent
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.
Please register or to comment