nCk(n,k)

버전 1.0.0.0 (830 Bytes) 작성자: Eyal Ben-Hur
Vectorized version of nchoosek function for multiple k's
다운로드 수: 32
업데이트 날짜: 2017/1/30

라이선스 보기

Returns the Binomial coefficient for each element in k for a given scalar n.
k may have any shape.
n must be scalar.
Example:
k = [4 5 6];
n = 10;
C = nCk(n,k)

C =
210 252 210

인용 양식

Eyal Ben-Hur (2024). nCk(n,k) (https://www.mathworks.com/matlabcentral/fileexchange/61348-nck-n-k), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

Added an example