N_PERMUTE_K

All possible permutations of the elements of set N, taken K at a time, with repetition.

이 제출물을 팔로우합니다

MAT = NPERMUTEK(N,K) returns all possible permutations of the elements taken from vector N of length K. This type of sampling is an ordered sample with replacement.
This is also known as the permutations with repetition.
MAT has size (length(N)^K)-by-K, where K must be a scalar.

[MAT, IDX] = NPERMUTEK(N,K) also returns IDX such that MAT = N(IDX).

If N is of class single, MAT and IDX will be also.

Please email me about bugs in the code.
Thanks

인용 양식

Matt Fig (2026). N_PERMUTE_K (https://kr.mathworks.com/matlabcentral/fileexchange/11462-n_permute_k), MATLAB Central File Exchange. 검색 날짜: .

도움

도움 받은 파일: permn

도움 준 파일: VChooseKRO, n permute k

카테고리

Help CenterMATLAB Answers에서 Elementary Math에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.4.0.0

MathWorks changed the behavior of the DIFF function with character arrays, resulting in an error for this file when called as in the second help example.

1.2.0.0

Fixed typos (Matlab needs spellchecker for guys like me.)

1.1.0.0

Cut execution time in half for single output calls. Added full support for single class.

1.0.0.0

Uploaded the wrong file.