v4: corrected bug for correlated coefficients

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1705 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2008-02-14 20:10:41 +00:00
parent 1c1221681f
commit 92f19dd476
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ function set_all_parameters(xparam1)
for i=1:ncx
k1 = corrx(i,1);
k2 = corrx(i,2);
Sigma_e(k1,k2) = xparam1(i+offset)*sqrt(Sigma_e_(k1,k1)*Sigma_e_(k2,k2));
Sigma_e(k2,k1) = Sigma_e_(k1,k2);
Sigma_e(k1,k2) = xparam1(i+offset)*sqrt(Sigma_e(k1,k1)*Sigma_e(k2,k2));
Sigma_e(k2,k1) = Sigma_e(k1,k2);
end
end