eq

Equality comparison, equivalent to the == operator.

Syntax

eq(a, b)

Inputs

a, b
Type: double | char | logical | struct | cell | integer
Dimension: scalar | vector | matrix

Outputs

R
Numerical representation of true or false (1 or 0).
Type: logical

Examples

Scalar example:
eq(5,5)
R = 1
Matrix example:
eq([2,4],[2,3])
R = [Matrix] 1 x 2
1  0