diff --git a/matlab/distributions/rand_multivariate_student.m b/matlab/distributions/rand_multivariate_student.m index 18017a44c2b777cd00dc03e05426abe5d36807ed..b7c1754944dbd4afc06d5b3d13e50535ac2b3570 100644 --- a/matlab/distributions/rand_multivariate_student.m +++ b/matlab/distributions/rand_multivariate_student.m @@ -40,7 +40,7 @@ function draw = rand_multivariate_student(Mean,Sigma_upper_chol,df,n) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see <https://www.gnu.org/licenses/>. if nargin == 3 - n = 1 + n = 1; end dim = length(Mean); draw = Mean + (randn(n,dim) * Sigma_upper_chol) .* sqrt(df./sum(randn(n,df).^2,2));