FUNCTION REFERENCE
isequal
Test arrays for equality.
The source help has multiple entries for this name. They are preserved below in source order, including differing compatibility notes.
Source entry 1
Test whether arrays are equal.
Syntax
tf = isequal(A, B)Syntax
tf = isequal(A, B, C, ...)True when every input has the same size and the same values. Numeric, logical and character inputs compare by value regardless of class. NaN is never equal to NaN.
Example
isequal([1 2 3], [1 2 3]) % 1Differences from MATLAB: none known.
Source entry 2
Test arrays for equality.
Syntax
tf = isequal(A, B)Syntax
tf = isequal(A, B, C, ...)True when all inputs have the same size and equal contents. Numeric, logical and
character data compare by value ('a' equals 97); NaN is not equal to NaN; cells compare
element by element; structs compare field by field and the field order does not matter.
Objects of classdef classes compare class and property values; two handle objects are equal
when they are the same object or have equal property values.
Example
isequal({1, 'a'}, {1, 'a'}) % trueInteger and single values are compared inside cells and structs too; 64-bit integers retain exact comparison.
Differences from MATLAB: Function handle comparison is not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.