Fix crash of rplot with models with no lags (fixed #71)

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3267 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
sebastien 2009-12-18 09:39:53 +00:00
parent 30d45ad9c9
commit f9a7dfc5f4
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ for k=1:size(s1,1)
end
if options_.smpl == 0
i = [M_.maximum_lag:size(oo_.endo_simul,2)]' ;
i = [max(1, M_.maximum_lag):size(oo_.endo_simul,2)]' ;
else
i = [options_.smpl(1)+M_.maximum_lag:options_.smpl(2)+M_.maximum_lag]' ;
end