frnd - F random numbers
Syntax
R = frnd(V1,V2)
R = frnd(V1,V2,v)
R = frnd(V1,V2,m,n)
Description
R = frnd(V1,V2) generates
random numbers from the F distribution with numerator
degrees of freedom V1 and denominator
degrees of freedom V2. V1 and V2 can
be vectors, matrices, or multidimensional arrays that all have the
same size. A scalar input for V1 or V2 is
expanded to a constant array with the same dimensions as the other
input.
R = frnd(V1,V2,v) generates
random numbers from the F distribution with parameters V1 and V2, where v is a
row vector. If v is a 1-by-2 vector, R is a matrix
with v(1) rows and v(2) columns.
If v is 1-by-n, R is an n-dimensional
array.
R = frnd(V1,V2,m,n) generates
random numbers from the F distribution with parameters V1 and V2,
where scalars m and n are the row and column dimensions of R.
Examples
n1 = frnd(1:6,1:6)
n1 =
0.0022 0.3121 3.0528 0.3189 0.2715 0.9539
n2 = frnd(2,2,[2 3])
n2 =
0.3186 0.9727 3.0268
0.2052 148.5816 0.2191
n3 = frnd([1 2 3;4 5 6],1,2,3)
n3 =
0.6233 0.2322 31.5458
2.5848 0.2121 4.4955
See Also
random, fpdf, fcdf, finv, fstat
F Distribution
 | friedman | | fstat |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit