generating random no. between -pi to pi

1 次查看(过去 30 天)
I want to generate 5 random no. beteeen -pi to pi, by using the rand function, I use the rand function but couldn't understant the command to get in the range of -pi to pi

回答(1 个)

Torsten
Torsten 2022-9-29
See the example
Random Numbers within Specified Intervals
under

类别

Help CenterFile Exchange 中查找有关 Random Number Generation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by