Skip to content
Snippets Groups Projects

fix spaces

Merged Olivier Sauter requested to merge fix_space into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
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