Monday, 30 May 2016

MATLAB Programming 21 - Logical Operators

Logical Operations

True or false (Boolean) conditions
The logical data type represents true or false states using the numbers 1 and 0, respectively. Certain MATLAB® functions and operators return logical values to indicate fulfillment of a condition. You can use those logical values to index into an array or execute conditional code. For more information, see how to Find Array Elements That Meet a Condition.

Functions

Logical Operators: Short-circuit - Logical operations with short-circuiting
and - Find logical AND
not - Find logical NOT
or - Find logical OR
xor - Find logical exclusive-OR

No comments:

Post a Comment