wblrnd

Generate random data from a Weibull distribution.

Syntax

rnd=wblrnd(a,b)

rnd=wblrnd(a,b,r,c)

Inputs

a
Scale parameter (default = 1).
Type: double
Dimension: scalar | vector | matrix
b
Shape parameter (default = 1).
Type: double
Dimension: scalar | vector | matrix
r,c
Number of matrix rows and columns.
Type: integer
Dimension: scalar

Outputs

rnd
Random data.

Examples

Single value wblrnd example:
a = 2;
b = 5;
rnd = wblrnd(a,b)
rnd = 1.8058
Vector wblrnd example:
a = 2;
b = 5;
r = 1;
c = 5;
rnd = wblrnd(a,b,r,c)
rnd = [Matrix] 1 x 5
1.8058 1.7567 1.6073 1.402 1.7454

Comments

The random number generator can be initialized using rand.