multinom
Version 1.0.0.0 (1.67 KB) by
Damith Senaratne
Computes coefficients powers for a multinomial expansion of the form (a_1+...+a_M)^N
Usage: [c, p] = multinom(M,N)
Computes coefficients 'c' & powers 'p' for a multinomial expansion such that
a_1 + ... + a_M)^N = \sum_{k=1}^K c(k) a_1^p(k,1) ... a_M^p(k,M),
where K = nchoosek(N+M-1,N).
'c' is a Kx1 vector of coeficients
'p' is a KxM matrix of powers, with k^th row containing the powers p(k,1) through p(k,M).
Cite As
Damith Senaratne (2026). multinom (https://nl.mathworks.com/matlabcentral/fileexchange/32604-multinom), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
