Skip to content
Snippets Groups Projects
Commit 082f571e authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug (wrong condition on object type).

parent c8cc820e
Branches
Tags
No related merge requests found
...@@ -44,14 +44,10 @@ if ~(isequal(nA,nB) && isequal(sA,sB)) ...@@ -44,14 +44,10 @@ if ~(isequal(nA,nB) && isequal(sA,sB))
error('dassert:: Dimensions of compared objects A and B don''t match!') error('dassert:: Dimensions of compared objects A and B don''t match!')
end end
if isequal(cA,cB) if ~isequal(cA,cB)
error('dassert:: Compared objects are not of the same type!') error('dassert:: Compared objects are not of the same type!')
end end
if iscell(B) && ~iscell(A)
error('assert:: Compared objects are not of the same type!')
end
if isa(cA,'double') if isa(cA,'double')
if use_isequal_matlab_builtin if use_isequal_matlab_builtin
t = isequal(A,B); t = isequal(A,B);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment