y = fn_coerce(x,m,M) y = fn_coerce(x,[m M])
y = min(max(x,m),M);
Thomas Deneux
Copyright 2002-2017
Published with MATLAB® R2015a