问题

软件 >> MatLab
Questions in category: MatLab (MatLab).

MatLab 中生成随机数或服从某种分布的随机数矩阵

Posted by haifeng on 2019-03-01 11:11:46 last update 2019-03-01 11:11:46 | Answers (0) | 收藏


rand(m,n) 生成 $m\times n$ 阶随机数矩阵, 矩阵的元素是 $[0,1]$ 之间的等概率分布的随机数.

当 $m=n$ 时, 可直接写 rand(n)