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-circuitLogical operations with short-circuiting
andFind logical AND
notFind logical NOT
orFind logical OR
xorFind logical exclusive-OR

No comments:

Post a Comment