Create inverse logical array in Matlab?

Just use the logical NOT operator: isOcean = ~isLand Easy-peasy lemon squeezy! ;).

Just use the logical NOT operator: isOcean = ~isLand; Easy-peasy lemon squeezy! ;).

Great answer, I was going to use the find function that this is much better – Elpezmuerto Sep 14 '10 at 18:37.

As gnovice tells you, ~ (the not operator) is the right answer of course, but you can also use isOcean = isLand == 0; This should work too: isOcean = xor(1,isLand); There are always several ways to solve any problem in MATLAB.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions