From 25eefcffcae03944388aa01d2e2872caed9cc195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= <stephane.adjemian@univ-lemans.fr> Date: Tue, 25 Oct 2016 11:46:52 +0200 Subject: [PATCH] Fixed subsref (missing method interfaces). --- src/@dseries/subsref.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@dseries/subsref.m b/src/@dseries/subsref.m index 2d662b0..be86968 100644 --- a/src/@dseries/subsref.m +++ b/src/@dseries/subsref.m @@ -70,7 +70,7 @@ switch S(1).type error(['dseries::subsref: ' S(1).subs ' is not a method but a member!']) end B = builtin('subsref', A, S(1)); - case {'log','log_','exp','exp_','ygrowth','qgrowth','ydiff','qdiff','abs'} % Give "dot access" to public methods without args. + case {'log','log_','exp','exp_','ygrowth','qgrowth','ydiff','qdiff','abs','isnan','firstdate','firstobservedperiod'} % Give "dot access" to public methods without args. B = feval(S(1).subs,A); if length(S)>1 && isequal(S(2).type,'()') && isempty(S(2).subs) S = shiftS(S,1); @@ -90,7 +90,7 @@ switch S(1).type case 'freq' % Returns an integer characterizing the data frequency (1, 4, 12 or 52) B = A.dates.freq; - case {'lag','lead','hptrend','hpcycle','chain','detrend','exist','mean','std','center','firstobservedperiod'} % Methods with less than two arguments. + case {'lag','lead','hptrend','hpcycle','chain','detrend','exist','mean','std','center'} % Methods with less than two arguments. if length(S)>1 && isequal(S(2).type,'()') if isempty(S(2).subs) B = feval(S(1).subs,A); -- GitLab