Commit 082f571e authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug (wrong condition on object type).

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