how to generate 10 random numbers ( 0 to 1)

2 次查看(过去 30 天)
how to generate 10 random numbers ( 0 to 1). For ex.,
0.9865, 0.2376, 0.5743,…

回答(1 个)

KSSV
KSSV 2020-9-18
编辑:KSSV 2020-9-18
Read about rand.
iwant = rand(1,10)

类别

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