diff --git a/matlab/marginal_density.m b/matlab/marginal_density.m
index 66dd91fda36ac3a54e5bc2123bca4915149b3056..ac524c1c7c7979db876511ddbfd35e150c50caa0 100644
--- a/matlab/marginal_density.m
+++ b/matlab/marginal_density.m
@@ -29,7 +29,7 @@ for n = FirstMhFile:TotalNumberOfMhFiles
   ifil = 1;
 end
 MU = MU/((TotalNumberOfMhDraws-TODROP)*nblck);
-xparam1 = MU;
+xparam1 = MU';
 MU1 = repmat(MU,MAX_nruns,1);
 %% lpost_mode is the value of the log posterior kernel at the mode.	
 fprintf(' Done!\n');