Random Numbers with Gaussian and Uniform Distributions in matlab

前端 未结 6 1809
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-09 07:12

I want generate a number in Gaussian and Uniform distributions in matlab. I know this function randi and rand() but all of them are in normal (Gau

6条回答
  •  执念已碎
    2020-12-09 07:38

    randn is the function to generate Gaussian distributed variables (randi and rand produce uniformly distributed ones).

提交回复
热议问题