matlab中unifrnd(20,30,1000,1)各个数字是什么意思?

如题所述

作用是产生一个1000x1的随机数组,随机数在20-30之间均匀分布。
类似这种问题,其实没必要提问,自己试一下或者查一下帮助就知道了。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-11-03
R = unifrnd(A,B) returns an array R of random numbers generated from the continuous uniform distributions with lower and upper endpoints specified by A and B, respectively. If A and B are arrays, R(i,j) is generated from the distribution specified by the corresponding elements of A and B. If either A or B is a scalar, it is expanded to the size of the other input.
R = unifrnd(A,B,m,n,...) or R = unifrnd(A,B,[m,n,...]) returns an m-by-n-by-... array. If A and B are scalars, all elements of R are generated from the same distribution. If either A or B is an array, they must be m-by-n-by-... .
相似回答