creating random number from -pi to pi

3 次查看(过去 30 天)
How to create random numbers from -pi to pi?

采纳的回答

Walter Roberson
Walter Roberson 2015-7-20
(rand() * 2 - 1) * pi

更多回答(1 个)

Mayank Lakhani
Mayank Lakhani 2015-7-20
i want like (1,100) matrix. When i tries this shows error

标签

Community Treasure Hunt

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

Start Hunting!

Translated by