Borrar filtros
Borrar filtros

how to write *normrnd* by myself?

2 visualizaciones (últimos 30 días)
alireza kooshafar
alireza kooshafar el 16 de Feb. de 2016
Comentada: alireza kooshafar el 17 de Feb. de 2016
I want to write normrnd 's code by myself but I have no idea about it. thanks for help

Respuesta aceptada

Matt J
Matt J el 16 de Feb. de 2016
Editada: Matt J el 16 de Feb. de 2016
Just use
x=randn(m,n);
y=A*x+B;
and choose A and B appropriate to the sigma, mu that you want.
  5 comentarios
Matt J
Matt J el 16 de Feb. de 2016
I can't see how you would do that, except by using a Central Limit Theorem approximation.
alireza kooshafar
alireza kooshafar el 17 de Feb. de 2016
thanks a million

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by