creating random number from -pi to pi

9 visualizaciones (últimos 30 días)
Mayank Lakhani
Mayank Lakhani el 20 de Jul. de 2015
Comentada: Walter Roberson el 20 de Jul. de 2015
How to create random numbers from -pi to pi?
  2 comentarios
Stephen23
Stephen23 el 20 de Jul. de 2015
Editada: Stephen23 el 20 de Jul. de 2015
What probability distribution do you want the values to have?
Mayank Lakhani
Mayank Lakhani el 20 de Jul. de 2015
I want uniform distribution. thanks for your reply

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 20 de Jul. de 2015
(rand() * 2 - 1) * pi

Más respuestas (1)

Mayank Lakhani
Mayank Lakhani el 20 de Jul. de 2015
i want like (1,100) matrix. When i tries this shows error

Categorías

Más información sobre Random Number Generation 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