MATLAB: Problem using the find function

findMATLAB

hi, i'm trying to use the find function to locate specific values form matrix array and to remove them (as you can see in the attached m-file) https://www.dropbox.com/s/bcynkiblh7n8tr5/check_values_s_ds_script.m
i use the function like this:
[row,col] = find(resault>0.899 & resault < 1);
but still i find values that are greater then 1 (some are even 50) what am i doing wrong?

Best Answer

i found the problem i have been using find function the wrong way by changing the output to just one (index of matrix) the function give me the correct location of each and every value