필터 지우기
필터 지우기

how to write *normrnd* by myself?

조회 수: 2 (최근 30일)
alireza kooshafar
alireza kooshafar 2016년 2월 16일
댓글: alireza kooshafar 2016년 2월 17일
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.
alireza kooshafar
alireza kooshafar 2016년 2월 17일
thanks a million

댓글을 달려면 로그인하십시오.

추가 답변 (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