Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Aseem Dua
Aseem Dua le 23 Jan 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
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.

Réponses (1)

Star Strider
Star Strider le 23 Jan 2016
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