Logical (Boolean) Operations - MATLAB & Simulink - MathWorks
True or false conditionsMATLAB ® represents Boolean data using the logical data type. This data type represents true and false states using the numbers 1 and 0, respectively. Certain MATLAB functions and operators ret...