I have a matrix of numeric entries and wish to convert each entry above a specified threshold to one and all other entries to zero. This has to be an elegant way to do this without a "for" loop. Perhaps using the "find" command in some manner?
MATLAB: Converting matrix entries satisfying a threshold condition.
MATLABmatrix manipulation
Best Answer