MATLAB: Count number of values greater than a certain value in 3d matrix

3d matrix

I have a 3d matrix sized 40*60*157800. I want to calculate number of values greater than 10.5 of each of the 40×60 values. This will give me a 2d Matrix of 40*60*1. I have tried this code:
sum((myarray,3)>=10.5);
But in only gives me an error. I really need help how to write this code.

Best Answer

result = sum(myarray>=10.5,3);