Check that freq property is also empty.

time-shift
Stéphane Adjemian (Charybdis) 2012-11-26 09:56:36 +01:00
parent 7c9ce9152d
commit f01b97da18
1 changed files with 1 additions and 1 deletions

View File

@ -50,4 +50,4 @@ if ~isa(a,'dynDate')
error(['dynDate::isempty: Input argument ' inputname(1) ' have to be a dynDate object!'])
end
b = all(isnan(a.time));
b = all(isnan(a.time)) && isnan(a.freq);