how to write *normrnd* by myself?

2 次查看(过去 30 天)
I want to write normrnd 's code by myself but I have no idea about it. thanks for help

采纳的回答

Matt J
Matt J 2016-2-16
编辑:Matt J 2016-2-16
Just use
x=randn(m,n);
y=A*x+B;
and choose A and B appropriate to the sigma, mu that you want.
  5 个评论
Matt J
Matt J 2016-2-16
I can't see how you would do that, except by using a Central Limit Theorem approximation.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by