Code covered by the BSD License  

Highlights from
ONEPERM

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 1.86 KB File ID: #23067

ONEPERM

by Darren Rowland

 

22 Feb 2009

Obtain a single permutation of the numbers 1:N

| Watch this File

File Information
Description

   perm = ONEPERM(N,M) returns the M-th permutation of the sorted list of all permutations from PERMS, where M=1 corresponds to identity permutation. N, M are non-negative scalar, perm has size 1-by-N.
Makes use of a fast algorithm to generate a single permutation.

   See also PERMS
        and NPERMUTEK, RECPERMS, NEXTPERM, PERMS1 on the File Exchange

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
single permutation Darren Rowland 23 Feb 2009 11:09:01

Contact us at files@mathworks.com