Skip to content
Snippets Groups Projects
Commit b2a8b9c0 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

isequalwithequalnans does not exist in Octave 4.2 and both Octave and Matlab...

isequalwithequalnans does not exist in Octave 4.2 and both Octave and Matlab encourage use of isequaln
parent fc88767a
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,11 @@ if isa(A,'double')
if use_isequal_matlab_builtin
t = isequal(A,B);
if ~t
t = isequalwithequalnans(A,B);
if ~isoctave && matlab_ver_less_than('7.14')
t = isequalwithequalnans(A,B);
else
t = isequaln(A,B);
end
end
else
if max(abs(A(:)-B(:)))>tol
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment