Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Is drawing multiple samples from randn the same as invoking randn for appropriate size ?

조회 수: 1 (최근 30일)
Aseem Dua
Aseem Dua 2016년 1월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
Does the distribution of the random samples alter if I call randn(size, number_of_samples) instead of calling randn(size,1) in a loop of number_of_samples?
PS: I am looking to do stochastic computation for large samples.

답변 (1개)

Star Strider
Star Strider 2016년 1월 23일
It’s the same whether you call it repeatedly in a loop or ask it to create a matrix.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by