Skip to content

isequal

general · scripts/general/isequal.m

: tf = isequal (a, b)
: tf = isequal (a, b, c, …)

Return true if all arguments are equal to the first one.

Numeric, logical and character arrays are compared by value (class is ignored, as in MATLAB: isequal (uint16 (42), 42) is true). NaN is never equal to NaN. Cells and structs are compared recursively; struct field order is irrelevant.