Next: vect
Up: The commands in alphabetical
Previous: theL
  Contents
Subsections
thresh
Return a matrix mat thresholded.
Syntax
[out] = thresh(mat,level)
Description
Return the matrix 'mat' thresholded by 'level' percent.
Notice that mat can be also a YAWtb object. In this case, it this
the data field which is thresholded.
Input Data
- mat
- [MATRIX|YAWTB OBJECT]: the input matrix or a yawtb
object (a struct with 'data' field);
- level
- [REAL]: the level of thresholding in percent (that
is 0<level<100);
- mode
- [STRING]: the mode of thresholding. This mode can be 'abs'
(default), 'angle', 'real' or 'imag' corresponding respectively to the
thresholding of the absolute value, the argument, the real or the
imaginary part of mat.
Output Data
- out
- [MATRIX]: the thresholded matrix.
Example(s)
>> mat = rand(100,100);
>> nmat = thresh(mat,0.5);
>> figure; imagesc(mat);
>> figure; imagesc(nmat);
References
See Also
tools/misc/thresh.m
Next: vect
Up: The commands in alphabetical
Previous: theL
  Contents