[Matlab] Data Clipping, saturation
% 'x > upperbound' evaluates to a logical index
x = array to be clipped;
x( x > upperbound ) = upperbound;
x( x < lowerbound ) = lowerbound;
Interesting people find this blog boring; only boring people find this blog interesting ...
% 'x > upperbound' evaluates to a logical index
x = array to be clipped;
x( x > upperbound ) = upperbound;
x( x < lowerbound ) = lowerbound;
No comments:
Post a Comment