Skip to content
Snippets Groups Projects
Commit 2f7e7301 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge branch 't_output' into 'master'

rand_multivariate_student.m: suppress spurious output

See merge request !2314
parents d4ff9f03 8c459914
Branches
No related tags found
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