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).
- b
- Shape parameter (default = 1).
- r,c
- Number of matrix rows and columns.
Outputs
- rnd
- Random data.
Examples
a = 2;
b = 5;
rnd = wblrnd(a,b)
rnd = 1.8058
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.