<< isequal Elementary functions isequalto >>

isequaln


Return true if all arguments x1, x2, ... , xn are equal (same dimensions, same values or NaNs).


Syntax


res = isequaln(x1, x2)
res = isequaln(x1, x2, xn)

Input argument


x1

a value

x2

a value

xn

a value

Output argument


res

a logical value

Description


isequaln returns true if x1 and x2 are the same size and same values; otherwise, it returns false. isequaln compares real and imaginary parts of numeric arrays. NaN (Not a Number) values are considered to be equal to other elements.

Examples


A = eye(3, 3);
res = isequaln(A, A)

A = eye(3, 3);
B = single(A)			
res = isequaln(A, B)
res = isequalto(A, B)

res = isequaln('nel', 'son')

res = isequaln(NaN, NaN)

See also


isequal, isequalto.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< isequal Elementary functions isequalto >>