<< distfun_name2func Support distfun_plotintcdf >>

Distfun >> Distfun > Support > distfun_permrnd

distfun_permrnd

Random permutation

Calling Sequence

x = distfun_permrnd ( v )
x = distfun_permrnd ( v , n )

Parameters

v :

a m-by-1 matrix of doubles, the vector to permute

n :

a 1-by-1 matrix of floating point integers, the number of permutations (default n=1)

x:

a m-by-n matrix of doubles, the random permutations of v

Description

Generates random permutations.

Examples

// Use x = distfun_permrnd ( v )
x=distfun_permrnd((1:6)')
x=distfun_permrnd((1:6)')

// Generate 4 permutations
x=distfun_permrnd((1:6)',4)

Authors


Report an issue
<< distfun_name2func Support distfun_plotintcdf >>