Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CHEASE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
CHEASE
Merge requests
!12
fix spaces
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix spaces
fix_space
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Olivier Sauter
requested to merge
fix_space
into
master
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
2cfe9b06
1 commit,
2 years ago
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
matlab/CHEASEgui/iround_os.m
+
3
−
3
Options
function
[
is
,
sigi
]
=
iround_os
(
sig
,
val
)
%
% Given two arrays sig and val, for each element in val
% Given two arrays sig and val, for each element in val
% returns the index and value of the nearest element in sig.
%
%
% sig and/or val can be non-monotonic (contrary to TCV iround which requires sig to be monotonic)
%
% Example:
@@ -15,4 +15,4 @@ is = zeros(size(val));
for
j
=
1
:
numel
(
val
)
[
~
,
is
(
j
)]
=
min
(
abs
(
sig
-
val
(
j
)));
end
sigi
=
sig
(
is
);
\ No newline at end of file
sigi
=
sig
(
is
);
Loading