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-fcb05880fee1time-shift
parent
fffa15962c
commit
4d0c1d998d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue