creating random number from -pi to pi

2 次查看(过去 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

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by