[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;
Posted by
YYC
at
4:10 PM
0
comments
Labels: Matlab
"There is only one thing more beautiful than one guitar - Two guitars" Frederic Chopin
Posted by
YYC
at
4:38 PM
0
comments
Labels: English