Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
b1919c5c
Commit
b1919c5c
authored
Dec 09, 2016
by
Marco Berzborn
Browse files
bugfix: display after error command cannot be reached
parent
0a398dea
Changes
1
Hide whitespace changes
Inline
Side-by-side
kernel/StandardRoutines/ita_parse_arguments.m
View file @
b1919c5c
...
...
@@ -192,8 +192,7 @@ for idx = 1:length(field_token)
case
{
'vector'
}
if
~
isvector
(
value
)
error
([
thisFuncStr
callFuncStr
'Type does not match requirements, should be a vector but is:'
])
disp
(
value
)
error
([
thisFuncStr
callFuncStr
'Type does not match requirements, should be a vector but is:'
,
class
(
value
)])
end
case
{
'char'
,
'string'
}
% pdi - I need this case
if
~
ischar
(
value
)
...
...
@@ -290,10 +289,10 @@ while (idx <= nArguments) % go through all arguments
else
notFoundArguments
=
1
;
% this handles the case that some arguments are not found
notFoundCell
{
end
+
1
}
=
Arguments
{
idx
};
notFoundCell
{
end
+
1
}
=
Arguments
{
idx
};
%#ok<AGROW>
idx
=
idx
+
1
;
if
idx
<=
nArguments
notFoundCell
{
end
+
1
}
=
Arguments
{
idx
};
notFoundCell
{
end
+
1
}
=
Arguments
{
idx
};
%#ok<AGROW>
idx
=
idx
+
1
;
end
...
...
@@ -320,4 +319,4 @@ end
%% Output parameters
varargout
=
[
varargout
{
inStruct
}
{
notFoundCell
}];
%#ok<VARARG>
end
\ No newline at end of file
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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