Skip to content

exprnd

Pseudo random number of an exponential distribution

exprnd(mu)

  • It returns pseudo-random numbers of exponential distributions with mean values given by mu. mu should contains non-negative numbers.
  • The output has the same size as mu.

exprnd(mu,m)

  • It returns pseudo-random numbers of exponential distributions with means given by mu. m should be a positive integer.
  • The output is an m-by-m matrix.
  • mu should be a scalar or an m-by-m matrix.
  • mu should contains non-negative numbers.

exprnd(mu, s1, s2, ..., sn)

  • It returns pseudo-random numbers of exponential distributions with means given by mu.
  • s1, s2, ... sn should be non-negative integers.
  • The output has the size [s1, s2, ..., sn].
  • mu should be a scalar or an array of size [s1, s2, ..., sn].
  • mu should contains non-negative numbers.

exprnd(mu, sizeVec)

  • It returns an array of pseudo random numbers which follows exponential distributions with means given by mu. The output's size is specified by the size vector sizeVec.
  • mu should be a scalar, or an array of size sizeVec.
  • mu should contains non-negative numbers.