I have a logical array isLand, it is true if the index is above the ground and false if the index is not above the ground, like the ocean. How can I easily create another isOcean boolean array which is an inLand inversion. Everything in isLand will be zeros in isOcean and vice versa.
I know I can do this using the for loop, but I feel that there is a much better way.
source
share