Publisher review:Picking elements from a set gives all possibilities of picking k elements from a set of N with/without order/repetition. s = pick(V,k,Type)Gives all possibilities of picking k elements from the set V with or without order and repetition.V can be an array of any size and any type.
Type can have the following values: '', 'o', 'r', 'or'. 'o' means pick ordered list, 'r' means replace elements after picking.s is an array with all picks, one per row.Examples:>> pick(0:1, 4, 'or')ans =0 0 0 00 0 0 10 0 1 00 0 1 10 1 0 00 1 0 10 1 1 00 1 1 11 0 0 01 0 0 1...>> pick('abcd', 2, '')ans =abacadbcbdcd>> pick(1:3,3,'o')ans =1 2 31 3 22 1 32 3 13 1 23 2 1 Requirements: ยท MATLAB Release: R14
Picking elements from a set is a Matlab script for Mathematics scripts design by Stefan Stoll.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris