MATLAB 取N个随机数

2025-12-16 14:21:37
推荐回答(2个)
回答1:

>> round(rand(1,5)*100)/10

ans =

4.2000 8.5000 5.3000 2.0000 6.7000

回答2:

为什么不直接rand(5,1)呢?