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

simplify isequal.m

parent 58f96e10
Branches
Tags
No related merge requests found
......@@ -28,17 +28,7 @@ if ~isa(o,'dates') || ~isa(p,'dates')
error('dates:isequal:ArgCheck','Both inputs must be dates objects!')
end
if ~isequal(o.freq, p.freq)
l = false;
return
end
if ~isequal(o.ndat(), p.ndat())
l = false;
return
end
l = isequal(o.time, p.time);
l = isequal(o.freq, p.freq) && isequal(o.time, p.time);
%@test:1
%$ d1 = dates('1938Q1');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment