I want to compare the values of a matrix with a value (such such if bigger than zero) and return true if so. How can I do that, cause below is returning a mtrix?
Does it calculate abs.( RR .-1) at each element of RR then compare then element with (0.00086)? If so, is there another more efficient way in terms for performance to calculate abs.( RR .-1) for all elements of RR then apply all()on the resulting matrixabs.( RR .-1)`?
This is because when I put the above function in a time-loop with RR[10,4000], the speed of the whole code becomes slow.