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-bf33cf982152time-shift
parent
30d45ad9c9
commit
f9a7dfc5f4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue