matlab rand(3,5)

rand()函数在(0,1)上创建均匀分布的随机数的数组

>> rand(3,5)

ans =

0.8147 0.9134 0.2785 0.9649 0.9572
0.9058 0.6324 0.5469 0.1576 0.4854
0.1270 0.0975 0.9575 0.9706 0.8003

>>
>>
>>
>> rand(3,5)

ans =

0.1419 0.7922 0.0357 0.6787 0.3922
0.4218 0.9595 0.8491 0.7577 0.6555
0.9157 0.6557 0.9340 0.7431 0.1712

>>

原文地址:https://www.cnblogs.com/herd/p/9131593.html