Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

random - Class: ProbDist

Generate random number drawn from ProbDist object

Syntax

Y = random(PD)
Y = random(PD, N)
Y = random(PD, N, M, ...)

Description

Y = random(PD) generates a random number drawn from the distribution specified by PD, a ProbDist object.

Y = random(PD, N) generates an N-by-N array of random numbers drawn from the distribution specified by PD, a ProbDist object.

Y = random(PD, N, M, ...) generates an N-by-M-by... array of random numbers drawn from the distribution specified by PD, a ProbDist object.

Inputs

PDAn object of the class ProbDistUnivParam or ProbDistUnivKernel.
NA positive integer.
MA positive integer.

Outputs

YA random number drawn from the distribution specified by PD.

See Also

random
  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS