From ec57867c72d8de724af0488f890c0579c5f46b39 Mon Sep 17 00:00:00 2001 From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152> Date: Fri, 18 Dec 2009 09:40:30 +0000 Subject: [PATCH] 4.1 branch: merged r3267 (Fix crash of rplot with models with no lags) git-svn-id: https://www.dynare.org/svn/dynare/branches/4.1@3268 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/rplot.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/rplot.m b/matlab/rplot.m index eb25882ac4..5f62d8d475 100644 --- a/matlab/rplot.m +++ b/matlab/rplot.m @@ -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 -- GitLab