Commit 557630ca authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Cosmetic change (return a warning if regexp does not find any variable to select).

parent af2546c7
......@@ -426,7 +426,9 @@ end
%$ t(2) = 0;
%$ end
%$ try
%$ warning off all
%$ c = ts1{'[A-Z]_1'};
%$ warning on all
%$ t(3) = 0;
%$ catch
%$ t(3) = 1;
......
......@@ -31,8 +31,8 @@ list_of_variables = intersect(o_list_of_variables, matched_strings_);
if isempty(list_of_variables)
if wildcardparameterflag
VariableName = strrep(VariableName, '\w*', '*');
disp(['dseries::extact: The wildcard expression ''' VariableName ''' did not match any variable name!'])
warning(['dseries::extact: The wildcard expression ''' VariableName ''' did not match any variable name!'])
else
disp(['dseries::extact: The regular expression ''[' VariableName ']'' did not match any variable name!'])
warning(['dseries::extact: The regular expression ''[' VariableName ']'' did not match any variable name!'])
end
end
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment