MATLAB: How to find the indices of the value of the matrix

indices matrix

How can I find the indices and exactly position of the value of the attached file. For example find index of value = -69.19 from the attached file.
Thanks

Best Answer

The answer depends entirely on how you define "equals" for floating point numbers:
>> [R,C] = find(abs(XX - -69.19)<1e-4)
R = []
C = []
>> [R,C] = find(abs(XX - -69.19)<1e-3)
R = 25
C = 124
>> [R,C] = find(abs(XX - -69.19)<1e-2)
R =
3
6
10
14
17
18
21
25
29
32
C =
108
110
113
116
118
119
121
124
127
129