fix when k-step ahead predictions are stored, with k>1, and one-step-ahead predictions have to be filled in stock1.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2509 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
67b89e7078
commit
c198c52fbc
|
@ -53,7 +53,7 @@ function pm3(n1,n2,ifil,B,tit1,tit2,tit3,tit_tex,names1,names2,name3,DirectoryNa
|
||||||
for file = 1:ifil
|
for file = 1:ifil
|
||||||
load([DirectoryName '/' M_.fname var_type int2str(file)]);
|
load([DirectoryName '/' M_.fname var_type int2str(file)]);
|
||||||
if size(size(stock),2) == 4
|
if size(size(stock),2) == 4
|
||||||
stock = squeeze(stock(1,:,:,:));
|
stock = squeeze(stock(1,:,1:n2,:));
|
||||||
end
|
end
|
||||||
k = k(end)+(1:size(stock,3));
|
k = k(end)+(1:size(stock,3));
|
||||||
stock1(:,:,k) = stock;
|
stock1(:,:,k) = stock;
|
||||||
|
|
Loading…
Reference in New Issue