How to create random numbers from -pi to pi?

2 Kommentare

Stephen23
Stephen23 am 20 Jul. 2015
Bearbeitet: Stephen23 am 20 Jul. 2015
What probability distribution do you want the values to have?
Mayank Lakhani
Mayank Lakhani am 20 Jul. 2015
I want uniform distribution. thanks for your reply

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 20 Jul. 2015

0 Stimmen

(rand() * 2 - 1) * pi

Weitere Antworten (1)

Mayank Lakhani
Mayank Lakhani am 20 Jul. 2015

0 Stimmen

i want like (1,100) matrix. When i tries this shows error

Kategorien

Mehr zu Random Number Generation finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by