The following arrays
Matrix
[,1] [,2] [,3] [,4] [,5]
[1,] 0.228 0.285 0.285 0.285 0.380
[2,] 0.228 0.285 0.570 0.380 0.228
[3,] 0.380 0.285 0.228 0.380 0.285
[4,] 0.285 0.285 0.570 0.380 0.380
[5,] 0.380 0.228 0.285 0.285 0.380
Matrix (B)
[,1] [,2] [,3] [,4] [,5]
[1,] 0.383 0.174 0.535 0.700 0.396
[2,] 0.404 0.785 0.346 0.838 0.074
[3,] 0.591 0.554 0.260 0.229 0.361
[4,] 0.176 0.865 0.423 0.166 0.349
[5,] 0.132 0.018 0.456 0.684 0.150
As I can return a third Matrix (C) that returns 1 if the value in the same position as Matrix (B) is less than or equal to Matrix (A) and 0 if greater?
The resulting Matrix (C) would be
[,1] [,2] [,3] [,4] [,5]
[1,] 0 1 0 0 0
[2,] 0 0 1 0 1
[3,] 0 0 0 1 0
[4,] 1 0 1 1 1
[5,] 1 1 0 0 1