Hi Kh A.! I am going to write in a sort of psuedo style code for this to help you out though I'm guessing this may be written in Matlab perhaps.
If given the matrix M = [1 1; 1 3;]; it looks like we have a 2d array. In Matlab, the semicolon is used to separate rows so we know that our matrix looks actually like
[1 1
1 3]
So, we're going to need two for loops: one to iterate through our rows and one to iterate through our columns.
num_rows = length(M)
num_cols = length(M[0])
number_entries = 0
indices = []
for r <- 1 to num_rows
for c <-1 to num_cols
if M[r][c] > 1
//we have found a match, you can print if you want, but I'm going to store
row_col_pair = [r, c]
indices.append(row_col_pair)
number_entries = number_entries + 1
If you were to print the results to see the number of entries greater than 1 and the corresponding locations it would be
num_entries = 1
and indices = [[2, 2]] (actual value here is 3)