MATLAB: Hi, I have a 300×300 array of data in the workspace as a result of running the code. This large array contains mostly -1.000000 values but also some values that are not -1.00000 that are useful to me. How to pick out these values from the array?Tnx

arraydata

-1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 10.1789 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 5.0891 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 10.6979 11.7302 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 7.0800 6.5805 -1.0000 -1.0000 7.0806 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000

Best Answer

help find
Or, if you want,
help ismember
You will probably need to use a tolerance, or not. That we cannot know. Only you know that.