Inequality Operators

All inequality operators return logical values (either 0/false or 1/true).

The magnitude of complex operands is used by all inequality operators.
Table 1.
<, <=, >, >=, ~=, == Scalar Row Vector Column Vector Matrix
Real Scalar Returns a true or false value (1 or 0) based on whether the inequality is true or false. Returns a vector the same size as the row vector, populated with true or false (1 or 0) values based on whether the inequality is true or false for each entity in the vector. Returns a vector the same size as the column vector, populated with true or false (1 or 0) values based on whether the inequality is true or false for each entity in the vector. Returns a matrix the same size as the matrix, populated with true or false values (1 or 0) based on whether the inequality is true or false for each entity in the matrix.
Row Vector Returns a vector the same size as the row vector, populated with true or false values (1 or 0) based on whether the inequality is true or false for each entity in the vector. Requires the vectors to be the same size. Returns a vector the same size as the vectors, populated with true or false (1 or 0) values. The values are based on an entity-wise comparison.
Column Vector Returns a vector the same size as the column vector, populated with true or false (1 or 0) values based on whether the inequality is true or false for each entity in the vector. Requires the vectors to be the same size. Returns a vector the same size as the vectors, populated with true or false values (1 or 0). The values are based on an entity-wise comparison.
Matrix Returns a vector the same size as the matrix, populated with true or false values (1 or 0) based on whether the inequality is true or false for each entity in the matrix. Requires the matrices to be the same size. Returns a matrix the same size as the matrices, populated with true or false values (1 or 0). The values are based on an entity-wise comparison.

Examples

2 < 4
ans = 1
[4 5 7]>=[6 4 2]
ans = [0 1 1]
[5 7; 3 2] ~= [5 2; 6 3]
ans = [0 1; 1 1]
Invalid examples:
[3 5 7] <= [4; 7; 2]
[4 3; 6 4] == [3 4]