Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sébastien Villemot
dseries
Commits
557630ca
Commit
557630ca
authored
Sep 01, 2017
by
Stéphane Adjemian
Browse files
Cosmetic change (return a warning if regexp does not find any variable to select).
parent
af2546c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/@dseries/subsref.m
View file @
557630ca
...
...
@@ -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
;
...
...
src/utilities/variables/build_list_of_variables_with_regexp.m
View file @
557630ca
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment