Fixed bug when m and s is scalar and x is array.

git-svn-id: file:///home/sebastien/dynare/gsa_dyn@144 f1850c17-3b45-254b-b221-fcb05880fee1
time-shift
rattoma 2009-10-09 08:01:21 +00:00
parent fffa15962c
commit 4d0c1d998d
1 changed files with 6 additions and 1 deletions

View File

@ -29,7 +29,12 @@ function invp = norm_inv(x, m, sd)
end
if length(m)==1,
m = repmat(m,1,s);
end
if length(sd)==1,
sd = repmat(sd,1,s);
end
x = reshape(x,1,s);
m = reshape(m,1,s);
sd = reshape(sd,1,s);