picks.m

From Spinach Documentation Wiki
Jump to: navigation, search

All picks of the specified number of elements from the vector provided, without repetitions.

Syntax

    p=picks(v,k)

Arguments

   v  - a row vector

   k  - number of elements to pick

Outputs

   p  - a matrix with multiple rows and k columns,
        containing the picks

See also

binpack.m


Version 2.2, authors: Ilya Kuprov