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).
Damith Senaratne (2021). multinom (https://www.mathworks.com/matlabcentral/fileexchange/32604-multinom), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Thanks!