Logical (Boolean) operations
true or false condition
| - | - | - |
|---|---|---|
| [Short-circuit &&, | ](https://www.mathworks.com/help/matlab/ref/logicaloperatorsshortcircuit.html) | |
| & | Computational logic AND |
|
| ~ | Computational logic NOT |
|
| [ | ](https://www.mathworks.com/help/matlab/ref/or.html) | Calculation logic OR |
| xor | Compute logical exclusive OR |
|
| all | Determine whether all array elements are non-zero or true |
|
| any | Determine if any array elements are non-zero | |
| false | logical 0 (false) |
|
| find | Find the index and value of non-zero elements | |
| islogical | Determine whether the input is a logical array | |
| logical | Convert numeric values ââto logical values | |
| true | Logical value 1 (true) |
Comments





