FUNCTION REFERENCE

eq

Equality test, the function form of a == b.

Equality test, the function form of a == b.

Syntax

TF = eq(A, B)

Returns a logical array, as the == operator does.

For handle objects of classdef classes it compares identity: true for copies of one object.

Example

eq([1 2 3], 2)   % [0 1 0]

Differences from MATLAB: same limits as the == operator.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.