So right now you are trying to solve "identify values greater than the overall mean."
To break up that part of the problem a bit more, lets think about how you would do that as a human. You would start by calculating the mean and then you would compare values against this mean in order to determine if they were greater.
Lets break this up a bit further into steps:
- Calculate the mean of the matrix values
- Iterate through each value in the matrix
- Compare the value at each iteration to the pre-calculated mean
- Do something with the result of this comparison
Steps 1 and 4 can be broken up a bit further, but I will leave that to you to figure out. Also, I'm not sure if you have been taught it yet, but there is some in-built functionality in MATLAB that could assist with step 1 without requiring further breaking it down.
I hope this helps clarify how to approach this problem and gives some insight into future programming problem solving. Remember that you can always think through how you would do something manually and what the steps would be to perform that solution.