Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
4
Merge Requests
4
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
cd96dc67
Commit
cd96dc67
authored
Nov 16, 2016
by
Marco Berzborn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
speed improvement: replaced str2double with sscanf
parent
76ca9f86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
kernel/StandardRoutines/ita_parse_arguments.m
kernel/StandardRoutines/ita_parse_arguments.m
+1
-1
No files found.
kernel/StandardRoutines/ita_parse_arguments.m
View file @
cd96dc67
...
...
@@ -115,7 +115,7 @@ for idx = 1:length(field_token)
token
=
field_token
{
idx
};
if
numel
(
token
)
>=
5
% RSC - support for arguments shorter than 5 elements
if
strcmpi
(
token
(
1
:
3
),
'pos'
)
&&
strcmpi
(
token
(
5
),
'_'
)
pos_num
=
s
tr2double
(
token
(
4
)
);
%this is the fixed position number in the argument list
pos_num
=
s
scanf
(
token
(
4
),
'%d'
);
%this is the fixed position number in the argument list
token_new
=
token
(
6
:
end
);
%get rid off prefix
if
pos_num
<=
numel
(
Arguments
)
% rsc - check if enough arguments are given
value
=
Arguments
{
pos_num
};
%get value/object
...
...
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