Commit 131c4230 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Changed behavior of eq overloaded method (dynDate class). Trigger an error...

Changed behavior of eq overloaded method (dynDate class). Trigger an error message if the two compared objects have no common frequency.
parent 3c911e5b
......@@ -58,9 +58,8 @@ if ~( isa(a,'dynDate') && isa(b,'dynDate'))
error(['dynDate::eq: Input arguments ' inputname(1) 'and ' inputname(2) ' have to be a dynDate objects!'])
end
if verbose && a.freq~=b.freq
disp(['dynDate::eq: Input arguments ' inputname(1) 'and ' inputname(2) ' have no common frequencies!'])
c = 0;
if ~isequal(a.freq,b.freq)
error(['dynDate::eq: Input arguments ' inputname(1) 'and ' inputname(2) ' have no common frequencies!'])
end
c = isequal(a.time,b.time);
......
Supports Markdown
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