Skip to content
Snippets Groups Projects
Verified Commit e7023300 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

rand_multivariate_student.m: suppress spurious output

[skip CI]

(cherry picked from commit 8c459914)
parent 83b9e629
Branches
Tags
No related merge requests found
......@@ -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));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment