error(['dates::pop: Input argument 'inputname(2)' has to be a dates object with a single element, a string (which can be interpreted as a date) or an integer.'])
error('dates:pop','Input argument %s has to be a dates object with a single element, a string (which can be interpreted as a date) or an integer!',inputname(2))
end
ifischar(a)
a=dates(a);
ifischar(p)
p=dates(p);
end
B=dates();
B.ndat=A.ndat-1;
B.freq=A.freq;
B.time=NaN(B.ndat,2);
ifisscalar(a)&&isint(a)
idx=find(transpose(1:A.ndat)~=a);
B.time=A.time(idx,:);
ifisnumeric(p)
idx=find(transpose(1:o.ndat)~=p);
o.time=o.time(idx,:);
o.ndat=o.ndat-1;
else
if~isequal(A.freq,a.freq)
error('dates::pop: Inputs must have common frequency!')
if~isequal(o.freq,p.freq)
error('dates:pop','Inputs must have common frequency!')