Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
toolbox
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
b1919c5c
Commit
b1919c5c
authored
Dec 09, 2016
by
Marco Berzborn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: display after error command cannot be reached
parent
0a398dea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
kernel/StandardRoutines/ita_parse_arguments.m
kernel/StandardRoutines/ita_parse_arguments.m
+4
-5
No files found.
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
Markdown
is supported
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