MATLAB中randon未定义怎么回事?

来源:百度知道 编辑:UC知道 时间:2024/05/16 16:14:16
编译时出错,出现什么“undefine function”

改成random

那是因为你的太老了的版本。

random吧?

help random
RANDOM Generate random arrays from a specified distribution.
The appropriate syntax depends on the number of parameters in the
distribution you are using:

R = RANDOM(NAME,A) returns an array of random numbers from the named
distribution that requires a single parameter array A.
R = RANDOM(NAME,A,B) returns an array of random numbers from the named
distribution that requires two parameter arrays A and B.
R = RANDOM(NAME,A,B,C) returns an array of random numbers from the named
distribution that requires three parameter arrays A, B, and C.

The size of R is the common size of A, B, and C if all are arrays. If
any parameters are scalars, the size of R is the size of the other
parameter(s).

R = RANDOM(NAME,A,M,N,...) or R = RANDOM(NAME,A,[M,N,...]) returns an
M-by-N-by-... array of ran