Generate random samples from 2-d Gaussian

8 visualizaciones (últimos 30 días)
Ahmad
Ahmad el 6 de Mzo. de 2016
Respondida: Sara Hafeez el 7 de Mzo. de 2016
Hi every one. I'm new in MATLAB and i have this question and dont know how to solve it. i would be thankful for help.
Generate 500 random samples from a 2 dimensional Gaussian with an isotropic Σ using matlab command randn(). Transform the data as above with , b=[0.5 ; 1] and A =[-5 5 ; 1 1] plot the original and transformed points. y=Ax+b
thanks.

Respuestas (1)

Sara Hafeez
Sara Hafeez el 7 de Mzo. de 2016
This is very very simple just use the rand function and search the help you will get it
Regards Sara Hafeez MATLAB Developer sarahafeez@ymail.com

Categorías

Más información sobre Random Number Generation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by