pickn

버전 1.0.0.0 (956 Bytes) 작성자: Richard Medlock
Return P random picks of N items from an input vector A.
다운로드 수: 2.2K
업데이트 날짜: 2003/5/19

라이선스 없음

B = PICKN(A,N,P)

Returns P random Picks of N items from vector A.

PickN assumes that each item can be repelaced after selection.

Example:
A list contains four elements: [1 2 3 4]
Show two possible combinations of choosing 3 items
from the list.

A = [1:4];
N = 3;
P = 2;

B = pickn(A,N,P)

1 3 1
2 4 1

If you specifcy P as the string 'all', then B will contain
all possible permutations.

인용 양식

Richard Medlock (2024). pickn (https://www.mathworks.com/matlabcentral/fileexchange/3423-pickn), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Typo. 3rd arg was supposed to be P not C. If you have already downloaded the previous version, please change it to P, otherwise there is now a new version available.