fn_coerce
y = fn_coerce(x,m,M) is a shortcut for y = min(max(x,m),M);
Contents
Example
y = fn_coerce(1:10,3,6)
y =
3 3 3 4 5 6 6 6 6 6
Source
Thomas deneux
Copyright 2002-2012
Code covered by the BSD License
|
|
||
|---|---|---|
|