on of clipped samples [default: 0]</span>
0012 <span class="comment">%  bounds: clipping bounds [default: max &amp; min of data]</span>
0013 <span class="comment">%</span>
0014 <span class="comment">%</span>
0015 <span class="comment">% NoiseTools</span>
0016 
0017 <span class="keyword">if</span> nargin&lt;2; threshold=0; <span class="keyword">end</span>
0018 <span class="keyword">if</span> nargin&lt;3; bounds=[]; <span class="keyword">end</span>
0019 <span class="keyword">if</span> threshold&gt;1; error(<s